3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.4 ms | 1393 KiB | 13 Q