3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.9 ms | 1392 KiB | 13 Q