3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = array ("127", "10", "20", "11"); $a2 = array ("8", "10", "30", "11"); print_r (array_intersect_assoc($a1, $a2)); ?>
Output for 4.3.0 - 7.2.0
Array ( [1] => 10 [3] => 11 )