3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( "0" => Array ( "0" => "45", "1" => "10640", "2" => "1041-0567041700116" ), "1" => Array ( "0" => "46", "1" => "10640", "2" => "10013800805001" ), "2" => Array ( "0" => "207", "1" => "10645", "2" => "03320103000052" ) ); $b = Array ( "0" => Array ( "0" => "03320103000052", "1" => "0" ), "1" => Array ( "0" => "10013800805001", "1" => "12" ), "2" => Array ( "0" => "1090-0360141758201", "1" => "3" ) ); $c = array(); foreach($a as $values) { foreach($values as $value) { foreach($b as $val) { foreach($val as $vals) { if($vals == $value) { $c[] = array_unique(array_merge($values,$val)); } } } } } print_r($c);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 46 [1] => 10640 [2] => 10013800805001 [4] => 12 ) [1] => Array ( [0] => 207 [1] => 10645 [2] => 03320103000052 [4] => 0 ) )

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.51 ms | 401 KiB | 8 Q