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 qdlOU
Output for 4.3.0 - 5.4.39, 5.4.41 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> string(3) "one" [1]=> string(3) "two" [2]=> string(5) "three" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.40

Process exited with code 137.