<?php
/* Demonstrating how high peak memory usage can get 
 *
 * sean coates
 */
highlight_file(__FILE__);
$x = str_repeat('x', 80000);
echo memory_get_usage() . "<br>\n";
echo memory_get_peak_usage() . "<br>\n";
$x = str_repeat('x', 80000);
echo memory_get_usage() . "<br>\n";
echo memory_get_peak_usage() . "<br>\n";
431320
431392
431320
513240