3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array('one', 'two', 'three'); $array2 = array('one', 'two', 'three'); print_r(array_intersect($array1, $array2));
based on dHA5S
Output for 4.3.0 - 7.1.0
Array ( [0] => one [1] => two [2] => three )