3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = array(); $B = &$A[0]; $F = &$A[1]; $C = $A; $D = $A; $C = $D; $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/LaXsn
function name:  (null)
number of ops:  18
compiled vars:  !0 = $A, !1 = $B, !2 = $F, !3 = $C, !4 = $D
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $6      !0, 0
          2        ASSIGN_REF                                               !1, $6
    5     3        FETCH_DIM_W                                      $8      !0, 1
          4        ASSIGN_REF                                               !2, $8
    6     5        ASSIGN                                                   !3, !0
    7     6        ASSIGN                                                   !4, !0
    8     7        ASSIGN                                                   !3, !4
   10     8        ASSIGN_DIM                                               !3, 0
          9        OP_DATA                                                  10
   11    10        ASSIGN_DIM                                               !4, 1
         11        OP_DATA                                                  20
   13    12        FETCH_DIM_R                                      ~15     !0, 0
         13        CONCAT                                           ~16     ~15, '+'
         14        FETCH_DIM_R                                      ~17     !0, 1
         15        CONCAT                                           ~18     ~16, ~17
         16        ECHO                                                     ~18
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1393 KiB | 13 Q