3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1=Array ( 0 => Array ( 0 => 24 ), 1 => Array ( 0 => 25 ) ); $arr2=Array ( 0 => Array ( 0 => 24 ), 1 => Array ( 0 => 25 ) ); $arr3=Array ( 0 => Array ( 0 => 24 ), 1 => Array ( 0 => 25 ) ); $result=array_intersect($arr1,$arr2,$arr3); print_r($result);
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Array ( [0] => Array ( [0] => 24 ) [1] => Array ( [0] => 25 ) )
Output for hhvm-3.10.0 - 3.13.2
Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Notice: Array to string conversion in /in/OLu6g on line 42 Array ( [0] => Array ( [0] => 24 ) [1] => Array ( [0] => 25 ) )
Output for 4.3.0 - 5.3.29
Array ( [0] => Array ( [0] => 24 ) [1] => Array ( [0] => 25 ) )