3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.11 ms | 1395 KiB | 19 Q