3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php register_shutdown_function(function() { var_dump($GLOBALS['a']); }); $a = 'asdsad'; while(true) $a .= str_repeat('adasdsad', 10000000);
Output for 7.0.0 - 7.2.11
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 80000032 bytes) in /in/s5P9O on line 9 string(6) "asdsad"
Process exited with code 255.
Output for hhvm-3.10.1 - 3.22.0

Process exited with code 139.
Output for 5.5.0 - 5.6.38
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 80000001 bytes) in /in/s5P9O on line 9 string(6) "asdsad"
Process exited with code 255.