3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.82 ms | 1385 KiB | 17 Q