3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array('one', 'two', 'three'); $array2 = array('one', 'two', 'three'); var_dump(array_intersect($array1, $array2));
based on qdlOU
Output for 4.3.0 - 5.4.39, 5.4.41 - 7.2.0
array(3) { [0]=> string(3) "one" [1]=> string(3) "two" [2]=> string(5) "three" }
Output for 5.4.40

Process exited with code 137.