3v4l.org

run code in 300+ PHP versions simultaneously
<?php $outer=array(); $outer[7]=array('a'=>'aaa','b'=>array()); $inner7=&$outer[7]; $inner['b'][]='xxx'; $inner['b'][]='yyy'; print_r($inner); print_r($outer);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GjOCf
function name:  (null)
number of ops:  18
compiled vars:  !0 = $outer, !1 = $inner7, !2 = $inner
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 7
          2        OP_DATA                                                  <array>
    4     3        FETCH_DIM_W                                      $5      !0, 7
          4        ASSIGN_REF                                               !1, $5
    5     5        FETCH_DIM_W                                      $7      !2, 'b'
          6        ASSIGN_DIM                                               $7
          7        OP_DATA                                                  'xxx'
    6     8        FETCH_DIM_W                                      $9      !2, 'b'
          9        ASSIGN_DIM                                               $9
         10        OP_DATA                                                  'yyy'
    7    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
    8    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.15 ms | 1394 KiB | 15 Q