3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.05 ms | 1394 KiB | 19 Q