3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [['item1', 'update']]; $arr2 = [['item2', 'create']]; $arr3 = [['item2', 'update']]; var_dump(array_merge($arr1, $arr2)); var_dump($arr1[] = $arr2); var_dump(array_merge($arr2, $arr3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tt5U4
function name:  (null)
number of ops:  23
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $arr3
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        INIT_FCALL                                               'array_merge'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        ASSIGN_DIM                                       ~8      !0
         12        OP_DATA                                                  !1
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'array_merge'
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.36 ms | 1395 KiB | 17 Q