3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.82 ms | 1394 KiB | 17 Q