3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a' => 1, 'b' => 2]; $arr += ['a' => 3] + ['b' => 4]; print_r(['a' => 3] + ['b' => 4]); print_r($arr); $arr = ['a' => 1, 'b' => 2]; print_r(array_merge($arr, ['a' => 3], ['b' => 4]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1IeaZ
function name:  (null)
number of ops:  18
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_VAL                                                 <array>
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8        ASSIGN                                                   !0, <array>
    9     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'array_merge'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 <array>
         13        SEND_VAL                                                 <array>
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1394 KiB | 17 Q