3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=8; function fibonacci ($n) { if ($n == 0) { return 0; } else if ($n == 1) { return 1; } else { return fibonacci( $n - 1 ) + fibonacci( $n - 2 ); } } echo 'the' . $a/ 'term is ' .fibonacci($a) ; ?>
based on gZVBO
Output for 7.1.0
Warning: A non-numeric value encountered in /in/94XEF on line 16 Warning: Division by zero in /in/94XEF on line 16 theINF21
Output for 7.0.0 - 7.0.14
Warning: Division by zero in /in/94XEF on line 16 theINF21
Output for 4.3.0 - 5.6.28, hhvm-3.12.0
Warning: Division by zero in /in/94XEF on line 16 the21
Output for hhvm-3.10.0

Process exited with code 153.