3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = []; for ($i = 0; $i < 5; ++$i) { if ($i == 2) { continue; } print "$i\n"; $arr[] = $i; $count++; $i[number]; } var_dump($arr);
Output for 7.2.6
0 Notice: Undefined variable: count in /in/f6EY2 on line 9 Warning: Use of undefined constant number - assumed 'number' (this will throw an Error in a future version of PHP) in /in/f6EY2 on line 10 1 Warning: Use of undefined constant number - assumed 'number' (this will throw an Error in a future version of PHP) in /in/f6EY2 on line 10 3 Warning: Use of undefined constant number - assumed 'number' (this will throw an Error in a future version of PHP) in /in/f6EY2 on line 10 4 Warning: Use of undefined constant number - assumed 'number' (this will throw an Error in a future version of PHP) in /in/f6EY2 on line 10 array(4) { [0]=> int(0) [1]=> int(1) [2]=> int(3) [3]=> int(4) }