3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sam = array(Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25)), Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25)), Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25 ))); //$sam=array_intersect ($sam); //$sam = array_map("unserialize", array_unique(array_map("serialize", $sam))); $samp = array(); foreach($sam as $value) { $samp = array_intersect($samp,$value); } print_r($samp);
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/r0Wc8 on line 12 Notice: Array to string conversion in /in/r0Wc8 on line 12 Notice: Array to string conversion in /in/r0Wc8 on line 12 Notice: Array to string conversion in /in/r0Wc8 on line 12 Notice: Array to string conversion in /in/r0Wc8 on line 12 Notice: Array to string conversion in /in/r0Wc8 on line 12 Array ( )
Output for 4.3.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
Array ( )