3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [3, [4, 6]]; $b = [3, [4, 5]]; $key = key(array_diff_assoc(array_merge(...$a), array_merge(...$b))); var_dump($key);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/12QrO
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $b, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'key'
          3        INIT_FCALL                                               'array_diff_assoc'
          4        INIT_FCALL                                               'array_merge'
          5        SEND_UNPACK                                              !0
          6        CHECK_UNDEF_ARGS                                         
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        INIT_FCALL                                               'array_merge'
         10        SEND_UNPACK                                              !1
         11        CHECK_UNDEF_ARGS                                         
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !2, $8
    7    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.47 ms | 1013 KiB | 17 Q