3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.08 ms | 1383 KiB | 17 Q