3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fibo[0] = 0; $fibo[1] = 1; for($i=2; $i<10; $i++){ $fibo[i] = $fibo[i-1] + $fibo[i-2]; echo "Fibonacci series"+$i-1+" : "; echo $fibo[i]; echo "\n"; } ?>
based on l81MU
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 1 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 9 0 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 2 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 9 0 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 3 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 9 0 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 4 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 9 0 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 5 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 9 0 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 9 0 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 7 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 9 0 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 8 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/1lPWZ on line 9 0
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 1 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 2 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 3 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 4 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 5 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 7 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 Warning: A non-numeric value encountered in /in/1lPWZ on line 8 8 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0
Output for 5.3.20 - 7.0.20
Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 1 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 2 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 3 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 4 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 5 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 7 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -1 in /in/1lPWZ on line 6 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 6 Notice: Undefined offset: -2 in /in/1lPWZ on line 6 8 Notice: Use of undefined constant i - assumed 'i' in /in/1lPWZ on line 9 0