3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
8