3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function fibonacci($n,$first = 0,$second = 1) { $fib = aray ($first,$second); for($i=1;$i<$n;$i++) { $fib[] = $fib[$i]+$fib[$i-1]; } return $fib; } echo "<pre>"; print_r(fibonacci(50));
based on 9rlgb
Output for 7.0.0 - 7.1.0
<pre> Fatal error: Uncaught Error: Call to undefined function aray() in /in/4ahXP:4 Stack trace: #0 /in/4ahXP(12): fibonacci(50) #1 {main} thrown in /in/4ahXP on line 4
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
<pre> Fatal error: Call to undefined function aray() in /in/4ahXP on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<pre> Fatal error: Call to undefined function: aray() in /in/4ahXP on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<pre> Fatal error: Call to undefined function: aray() in /in/4ahXP on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<pre> Fatal error: Call to undefined function: aray() in /in/4ahXP on line 4