3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1 = array ("127", "10", "12"); $a2 = array ("127", "20", "12", "11"); $fu = array_intersect_assoc($a1, $a2); for($i=0; $i < count($fu); $i++) { if (isset($fu[$i])) { print "{$i}, ye"; } } ?>
Output for 4.3.0 - 7.1.0
0, ye