3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.75 ms | 1394 KiB | 17 Q