3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a1 = [ [ 0 => "0424", 1 => "9007382026", ], [ 0 => "15043", 1 => "90073225", ], [ 0 => "15043-3", 1 => "900735226", ], ]; $a2 = [ [ 0 => "0424", 1 => "Text", 2 => "Text", 3 => "Text", 4 => "Text", 5 => "9007382026", ], [ 0 => "456456", 1 => "Text", 2 => "Text", 3 => "Text", 4 => "Text", 5 => "486424", ], [ 0 => "15043-3", 1 => "Text", 2 => "Text", 3 => "Text", 4 => "Text", 5 => "900735226", ], ]; $temp = array_column($a1, null, 0); $temp1 = array_column($a2, null, 0); $temp2 = array_intersect_key($temp1, $temp); print_r($temp2);die;
Output for rfc.property-hooks, git.master, git.master_jit
Array ( [0424] => Array ( [0] => 0424 [1] => Text [2] => Text [3] => Text [4] => Text [5] => 9007382026 ) [15043-3] => Array ( [0] => 15043-3 [1] => Text [2] => Text [3] => Text [4] => Text [5] => 900735226 ) )

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:
46.66 ms | 2683 KiB | 4 Q