3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array_1 = array( 'ana' => 'are', 'du' => 34, 'bopq'=> "Ana are mere mereu", 13 => "OK" ); $array_2 = array('du', 13); $result = array_intersect_key($array_1, array_flip($array_2)); Var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P6jkq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array_1, !1 = $array_2, !2 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   10     1        ASSIGN                                                       !1, <array>
   12     2        INIT_FCALL                                                   'array_intersect_key'
          3        SEND_VAR                                                     !0
          4        INIT_FCALL                                                   'array_flip'
          5        SEND_VAR                                                     !1
          6        DO_ICALL                                             $5      
          7        SEND_VAR                                                     $5
          8        DO_ICALL                                             $6      
          9        ASSIGN                                                       !2, $6
   14    10        INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !2
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.13 ms | 2136 KiB | 16 Q