3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array('one', 'two', 'three'); $array2 = array('one', 'TWo', 'THREE'); var_dump(array_intersect($array1, $array2));
based on q9n42
Output for 4.3.0 - 7.1.0
array(1) { [0]=> string(3) "one" }