3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function fib($n) { if($n <= 2) { return 1; } else { return fib($n - 1) + fib($n - 2); } } print fib(8); ?>
based on 8hZX2
Output for 4.3.0 - 7.2.0
21