3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function fibbonacci($n) { if($n < 2) { return 1; } return fibbonacci($n - 1) + fibbonacci(n - 2); } echo fibbonacci(5);
based on kFG3b
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP) in /in/6LjWd on line 10 Warning: A non-numeric value encountered in /in/6LjWd on line 10 Warning: Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP) in /in/6LjWd on line 10 Warning: A non-numeric value encountered in /in/6LjWd on line 10 Warning: Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP) in /in/6LjWd on line 10 Warning: A non-numeric value encountered in /in/6LjWd on line 10 Warning: Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP) in /in/6LjWd on line 10 Warning: A non-numeric value encountered in /in/6LjWd on line 10 5
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant n - assumed 'n' in /in/6LjWd on line 10 Warning: A non-numeric value encountered in /in/6LjWd on line 10 Notice: Use of undefined constant n - assumed 'n' in /in/6LjWd on line 10 Warning: A non-numeric value encountered in /in/6LjWd on line 10 Notice: Use of undefined constant n - assumed 'n' in /in/6LjWd on line 10 Warning: A non-numeric value encountered in /in/6LjWd on line 10 Notice: Use of undefined constant n - assumed 'n' in /in/6LjWd on line 10 Warning: A non-numeric value encountered in /in/6LjWd on line 10 5
Output for 5.3.19 - 7.0.20
Notice: Use of undefined constant n - assumed 'n' in /in/6LjWd on line 10 Notice: Use of undefined constant n - assumed 'n' in /in/6LjWd on line 10 Notice: Use of undefined constant n - assumed 'n' in /in/6LjWd on line 10 Notice: Use of undefined constant n - assumed 'n' in /in/6LjWd on line 10 5