3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array("a" => array(1)); $array2 = array("b" => array("1")); $result = array_intersect($array1, $array2); print_r($result);
Output for 5.4.0 - 5.6.30, hhvm-3.10.1 - 3.18.4, hhvm-3.19.2 - 3.21.3, 7.0.0 - 7.2.0
Notice: Array to string conversion in /in/TJ0NM on line 4 Notice: Array to string conversion in /in/TJ0NM on line 4 Array ( [a] => Array ( [0] => 1 ) )
Output for hhvm-3.18.5, hhvm-3.22.0
Notice: Array to string conversion in /in/TJ0NM on line -1 Notice: Array to string conversion in /in/TJ0NM on line -1 Array ( [a] => Array ( [0] => 1 ) )
Output for 4.3.0 - 5.3.29
Array ( [a] => Array ( [0] => 1 ) )