3v4l.org

run code in 200+ 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();$k = 0; foreach($sam as $value) { if($k == 0) $samp = $value; else $samp=array_intersect($samp,$value); $k++: } print_r($samp);
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ':' in /in/6B8Pj on line 17
Process exited with code 255.