Gen. partnerAlgotech

PHP function memory_get_usage()

Returns the amount of memory allocated to PHP

|
September 11, 2019

Availability in versions: PHP 4.3.2

Returns the amount of memory allocated to PHP

Parameters

Parameter Data type Default value Note
$real_usage bool null Set this to true to get the real size of memory allocated from system. If not set or false only the memory used by emalloc() is reported.

Return values

int

the memory amount in bytes.

Other resources

Official documentation for memory-get-usage

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.