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(3, 1);
Output for 4.3.0 - 7.1.0
13