3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function fibonacci ($n) { if ($n == 0) { return 0; } else if ($n == 1) { return 1; } else { return fibonacci( $n - 1 ) + fibonacci( $n - 2 ); } } ?>
Output for 4.3.0 - 7.1.0