3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function fac($num) { if ($num > 1) { $num = $num * fac($num - 1); } return $num; } $fac = fac(7); echo $fac;
Output for 4.3.0 - 7.1.0
5040