3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = ['a','b','c','d','e','f','g','h','i','alias']; $private = ['a','b','c','d']; $aliases = [ 'alias' => 'real', 'foo' => 'bar' ]; $aliases = array_flip($aliases); print_r(array_intersect_key($aliases, array_flip($private)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8t2Ej
function name:  (null)
number of ops:  18
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>
    8     2        ASSIGN                                                   !2, <array>
   13     3        INIT_FCALL                                               'array_flip'
          4        SEND_VAR                                                 !2
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
   15     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'array_intersect_key'
          9        SEND_VAR                                                 !2
         10        INIT_FCALL                                               'array_flip'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        SEND_VAR                                                 $8
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.8 ms | 1394 KiB | 19 Q