3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fibonacci = array(); for($i = 1; $i <= 4000000; $i++) { $i = $i + $previous; $fibonacci[] = $i; $previous = $i; } echo array_sum($fibonacci);
Output for 5.3.0 - 5.4.45
Notice: Undefined variable: previous in /in/mgABI on line 4 8388584