3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function buildHash($test = 1) { if ($test > 10) { echo "made it"; } else { echo $test; } try { throw new Exception('error'); } catch (Exception $e) { buildHash($test+1); } } buildHash();
Output for 5.4.0 - 5.4.30
12345678910made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade 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 32 bytes) in /in/9XUd6 on line 11
Process exited with code 255.
Output for 5.3.11 - 5.3.28
12345678910made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade 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 64 bytes) in /in/9XUd6 on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.10
12345678910made itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade itmade 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/9XUd6 on line 11
Process exited with code 255.