3v4l.org

run code in 300+ PHP versions simultaneously
<?php $colldata=array("bench-press-rod"=>'',"adidas-classic-backpack"=>'93549559913',"adidas-classic-backpack-legend-ink-multicolour"=>'',"puma-suede-classic-regal"=>'93549920361,93549723753'); $colldata2=array(0 => 'bench-press-rod',1 => 'adidas-classic-backpack'); print_r(array_intersect_key($colldata, array_flip($colldata2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M5pqn
function name:  (null)
number of ops:  13
compiled vars:  !0 = $colldata, !1 = $colldata2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_intersect_key'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'array_flip'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.22 ms | 953 KiB | 16 Q