3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.85 ms | 1394 KiB | 15 Q