3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function buildHash($test = 1) { if ($test > 10) { echo "made it"; } try { throw new Exception('error'); } catch (Exception $e) { buildHash(++$test); } } buildHash();
Output for 7.1.0
made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade it Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /in/42TZp on line 9
Process exited with code 255.
Output for 7.0.0 - 7.0.14
made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade it Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /in/42TZp on line 9
Process exited with code 255.
Output for hhvm-3.12.0
made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmallctl opt.prof: No such file or directory (2) Fatal error: request has exceeded memory limit
Process exited with code 255.
Output for hhvm-3.10.0
made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade it Fatal error: request has exceeded memory limit
Process exited with code 255.
Output for 5.5.24 - 5.6.28
made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade it Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 81 bytes) in /in/42TZp on line 9
Process exited with code 255.
Output for 5.4.0 - 5.4.45
made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade it Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 81 bytes) in /in/42TZp on line 9
Process exited with code 255.
Output for 5.3.7 - 5.3.29
made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade it Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 80 bytes) in /in/42TZp on line 9
Process exited with code 255.