3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.62 ms | 1395 KiB | 17 Q