3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('memory_limit', 100); ob_start(); $i = 0; while($i++ < 5000) { echo str_repeat("lol", 42); } ob_end_clean(); ?>
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.4.0 - 5.6.28
Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 49152 bytes) in /in/Df4Lc on line 6
Output for 5.3.0 - 5.3.29
Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 163841 bytes) in /in/Df4Lc on line 6