3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($n) { $f = 1; for ($i = 1; $i <= $n; $i++) { $f *= $i; } return $f; } echo f(4);
Output for 4.3.0 - 7.2.0
24