3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array("a" => 1); $array2 = array("b" => 1); $result = array_intersect($array1, $array2); print_r($result);
based on H4hS0
Output for 4.3.0 - 7.2.0
Array ( [a] => 1 )