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))); print_r($sam);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_intersect(): at least 2 parameters are required, 1 given in /in/WpigA on line 6
Output for hhvm-3.10.0 - 3.12.0
Warning: array_intersect() expects exactly 2 parameters, 1 given in /in/WpigA on line 6
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for array_intersect() in /in/WpigA on line 6