3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Warning: Array to string conversion in /in/8Ofcp on line 15 Array ( [0] => Array ( [0] => 24 ) [1] => Array ( [0] => 25 ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.42 ms | 403 KiB | 8 Q