3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArr = array(1,6,2,9,3,05,7,4); $arraySize = sizeof($testArr); $count = 0; foreach($testArr as $item) { if (!in_array($count, $testArr) { echo $count; } $count++; }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '{' in /in/VVebH on line 11
Process exited with code 255.

preferences:
178.44 ms | 1395 KiB | 60 Q