(PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8) memory_get_usage — Returns the amount of memory allocated to PHP Descriptionmemory_get_usage(bool Parametersreal_usage Set this to
Return ValuesReturns the memory amount in bytes. ExamplesExample #1 A memory_get_usage() example
memory_get_usage() . "\n"; // 57960unset($a); See Also
xelozz -at- gmail.com ¶ 12 years ago
convert(memory_get_usage(true)); // 123 kb Alex Aulbach ¶ 11 years ago
jeff dot peck at snet dot net ¶ 13 years ago
$mem_usage < 1024)
stanislav dot eckert at vizson dot de ¶ 5 years ago
stristr(PHP_OS, "win")) { randolphothegreat at yahoo dot com ¶ 17 years ago
lorin dot weilenmann at gmail dot com ¶ 11 years ago
yousha dot a at hotmail dot com ¶ 4 years ago
ad-rotator.com ¶ 18 years ago
miami at blackcrystal dot net ¶ 7 years ago
e dot a dot schultz at gmail dot com ¶ 16 years ago
preg_replace( '/[\D]/', '', $output[5] ) * 1024;
vesa dot kivisto at nepton dot fi ¶ 17 years ago
trim(substr($output[$resultRow], $resultRowItemStartPosition, $resultRowItemLength)) . ' KB';
MagicalTux at FF dot st ¶ 17 years ago
guenter_doege at web dot de ¶ 17 years ago
function_exists('memory_get_usage')) joe at schmoe dot com ¶ 15 years ago
miteigi nemoto (miteigi at yandex dot ru) ¶ 13 years ago
|