3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo memory_get_peak_usage(), PHP_EOL; $a = range(1, 10000); echo memory_get_peak_usage(), PHP_EOL;
Output for 7.2.0
417496 910960
Output for 7.0.0 - 7.1.0, 7.1.7 - 7.1.10
380824 874320
Output for 7.1.5 - 7.1.6
380824 874480
Output for 5.6.8 - 5.6.28
220640 1709768
Output for 5.5.24 - 5.5.35
220640 1709624
Output for 5.4.11 - 5.4.45
220576 1710120
Output for 5.3.21 - 5.3.29
626880 2112424