3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = array("1a"); $a2 = array("1a", "2a"); var_dump(array_intersect($a1, $a2));
based on o9jpk
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.8
array(1) { [0]=> string(2) "1a" }