Availability in PHP 7.0
Reclaims memory used by the Zend Engine memory manager
Parameters
The function has no input parameters.
Return values
int
Returns the number of bytes freed.
Other resources
Official gc-mem-caches documentation
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…
Availability in versions: PHP 5.2.0
Returns the peak of memory allocated by 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…