Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

memory_reset_peak_usage

Description

Reset the peak memory usage

Syntax

memory_reset_peak_usage(): void

Return

No value is returned.

Examples

1

<?

echo memory_get_peak_usage() . PHP_EOL;

$str_repeat = str_repeat("repeat", 100000);

echo memory_get_peak_usage() . PHP_EOL;

unset($str_repeat);

memory_reset_peak_usage();

$str_repeat = str_repeat("repeat", 1000);

echo memory_get_peak_usage();

?>
445384
1012264
418344
HomeMenu