3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.57 ms | 1394 KiB | 15 Q