3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test ($x, $y) { if (($x + $y) > 0) { test($x, $y - 1); return; } return $y; } function test2 ($x) { if ($x < time()) { test2($x + 1); return; } return $x; } echo test2(test(111, 110));
based on XS4vK
Output for 7.0.0 - 7.1.7, 7.2.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 262144 bytes) in /in/Qrsdo on line 12
Process exited with code 255.
Output for 7.1.10

Process exited with code 137.
Output for 5.6.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /in/Qrsdo on line 13
Process exited with code 255.
Output for 5.5.0 - 5.5.37
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/Qrsdo on line 12
Process exited with code 255.