3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.25 ms | 1398 KiB | 15 Q