3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function ack($m, $n) { if (!$m) return ++$n; elseif (!$n) return ack($m-1, 1); return ack($m-1, ack($m, $n-1)); } echo ack(4, 1);
Output for 5.3.7 - 5.6.28, 7.0.0 - 7.1.0

Process exited with code 137.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Stack overflow in /in/MlZfi on line 6
Process exited with code 255.