3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = ['a','b','c','d','e','f','g','h','i','z']; $private = [ 'a','b','c','d' ]; $aliases = [ 'z' => 'a' ]; print_r(array_intersect_key(array_flip($aliases), $private));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tq83j
function name:  (null)
number of ops:  14
compiled vars:  !0 = $keys, !1 = $private, !2 = $aliases
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
   10     2        ASSIGN                                                   !2, <array>
   15     3        INIT_FCALL                                               'print_r'
          4        INIT_FCALL                                               'array_intersect_key'
          5        INIT_FCALL                                               'array_flip'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.69 ms | 1394 KiB | 19 Q