3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'test'; $test = array( 'test' => array( 'val' ) ); $x = &$test[$name]; $x = array( 'val2' ); var_dump( $test );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/spsQg
function name:  (null)
number of ops:  9
compiled vars:  !0 = $name, !1 = $test, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test'
    4     1        ASSIGN                                                   !1, <array>
    5     2        FETCH_DIM_W                                      $5      !1, !0
          3        ASSIGN_REF                                               !2, $5
    6     4        ASSIGN                                                   !2, <array>
    8     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.7 ms | 1394 KiB | 15 Q