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;

preferences:
117.98 ms | 2687 KiB | 5 Q