PHP function memory_get_peak_usage()

11. 9. 2019

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 only the memory used by emalloc() is reported.

Return values

int

the memory peak in bytes.

Other resources

Official documentation for memory-get-peak-usage

Jan Barášek
Jan BarášekVíce o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.