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"; print_r(array_merge($array1 + $array2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WArQF
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  'zero'
    4     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  'one'
    6     4        ASSIGN_DIM                                               !1, 1
          5        OP_DATA                                                  'one'
    7     6        ASSIGN_DIM                                               !1, 2
          7        OP_DATA                                                  'two'
    8     8        ASSIGN_DIM                                               !1, 3
          9        OP_DATA                                                  'three'
   10    10        INIT_FCALL                                               'print_r'
         11        INIT_FCALL                                               'array_merge'
         12        ADD                                              ~7      !0, !1
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.83 ms | 1394 KiB | 17 Q