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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/2TFld
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a1, !1 = $a2, !2 = $temp, !3 = $temp1, !4 = $temp2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   19     1        ASSIGN                                                       !1, <array>
   50     2        INIT_FCALL                                                   'array_column'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     null
          5        SEND_VAL                                                     0
          6        DO_ICALL                                             $7      
          7        ASSIGN                                                       !2, $7
   51     8        INIT_FCALL                                                   'array_column'
          9        SEND_VAR                                                     !1
         10        SEND_VAL                                                     null
         11        SEND_VAL                                                     0
         12        DO_ICALL                                             $9      
         13        ASSIGN                                                       !3, $9
   52    14        INIT_FCALL                                                   'array_intersect_key'
         15        SEND_VAR                                                     !3
         16        SEND_VAR                                                     !2
         17        DO_ICALL                                             $11     
         18        ASSIGN                                                       !4, $11
   53    19        INIT_FCALL                                                   'print_r'
         20        SEND_VAR                                                     !4
         21        DO_ICALL                                                     
         22      > INIT_FCALL                                                   'exit'
         23*       DO_ICALL                                                     
   54    24*     > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.24 ms | 3321 KiB | 17 Q