3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function facul($i){ if($i == 1){ return 1; } else{ return $i*facul($i-1); } } echo facul(3); ?>
based on LsKtT
Output for 4.3.0 - 7.1.0
6