3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getFact2($num) { if ($num > 1) { //return $num * getFact2(--$num); print_r(($num * getFact2(--$num)) . ' '); } else { return $num; } } print_r(getFact2(5));
based on Inh4e
Output for 5.3.22 - 7.2.6
1 0 0 0