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

memory_reset_peak_usage

Description

The memory_reset_peak_usage of Options / Information for PHP reset the peak memory usage.

Syntax

memory_reset_peak_usage(): void

Return

No value is returned.

Examples

1 · void

<?

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();
434688
1001568
407648