3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1,2,array(3)); $b = array(2,2,2,1); print_r(array_intersect($b, $a));
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/WT0ie on line 6 Array ( [0] => 2 [1] => 2 [2] => 2 [3] => 1 )
Output for 5.2.15 - 5.3.29
Array ( [0] => 2 [1] => 2 [2] => 2 [3] => 1 )