3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n = array(1, 3); $k = 0; $x = 1; echo "$x\n"; for ($i = 1; $i < 300; $i++) { $x += $n[$k]; if ($k == 0) $k = 1; else $k = 0; }
Output for 4.3.0 - 7.1.0
1