3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $testArr = array(0,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 4.3.0 - 7.2.0
8