3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( "a" => "0,1", "b" => "0,0", "c" => "0,2", "d" => "0,3", "e" => "10,2" ); $b = Array ( 1 => "0,3", 2 => "10,2" ); $intersect = array_intersect($a, $b); Var_dump($intersect); Echo "matching keys is: " . Implode(", ", array_keys($intersect));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gIb10
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $intersect
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, <array>
   20     2        INIT_FCALL                                               'array_intersect'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
   21     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   22    10        INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '%2C+'
         12        INIT_FCALL                                               'array_keys'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                         $9      
         17        CONCAT                                           ~10     'matching+keys+is%3A+', $9
         18        ECHO                                                     ~10
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.99 ms | 1002 KiB | 17 Q