3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( foo => 10, bar => 20 ); $arr2 = array( foo => 10, bar => 20 ); var_dump(array_intersect($arr1, $arr2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TuHNI
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr1, !1 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_CONSTANT                                   ~2      'foo'
          1        INIT_ARRAY                                       ~3      10, ~2
    5     2        FETCH_CONSTANT                                   ~4      'bar'
          3        ADD_ARRAY_ELEMENT                                ~3      20, ~4
    3     4        ASSIGN                                                   !0, ~3
    8     5        FETCH_CONSTANT                                   ~6      'foo'
          6        INIT_ARRAY                                       ~7      10, ~6
    9     7        FETCH_CONSTANT                                   ~8      'bar'
          8        ADD_ARRAY_ELEMENT                                ~7      20, ~8
    7     9        ASSIGN                                                   !1, ~7
   11    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_intersect'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.47 ms | 1394 KiB | 17 Q