3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo factorial(3); function factorial(int $extent, int $currentValue = 1, int $step = 1): int { $currentValue *= $step; if ($step < $extent) { $step++; return factorial($extent, $step); } return $currentValue; }