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9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8,1,2,3,4,5,6,7,9,8); $c = array(1,2,3,4); $d = array(2,4); //print_r($x); //print_r($y); $x = array_flip($a); $y = array_flip($b); $x = array_intersect_key($x, $y); // 2 4 $x = array_flip($x); //$y = array_flip($y); //$x = array_intersect($a,$b); //print_r($result2); print_r($x); //print_r($result3); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OFJGu
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d, !4 = $x, !5 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, <array>
   12     4        INIT_FCALL                                               'array_flip'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $10     
          7        ASSIGN                                                   !4, $10
   13     8        INIT_FCALL                                               'array_flip'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $12     
         11        ASSIGN                                                   !5, $12
   14    12        INIT_FCALL                                               'array_intersect_key'
         13        SEND_VAR                                                 !4
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                         $14     
         16        ASSIGN                                                   !4, $14
   15    17        INIT_FCALL                                               'array_flip'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                         $16     
         20        ASSIGN                                                   !4, $16
   20    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !4
         23        DO_ICALL                                                 
   23    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.54 ms | 1395 KiB | 19 Q