3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = array(); $B = &$A[0]; $F = &$A[1]; $C = $A; $D = $A; $C[0] = $D[1]; debug_zval_dump($A); debug_zval_dump($C); debug_zval_dump($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/7fU0p
function name:  (null)
number of ops:  29
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        FETCH_DIM_R                                      ~13     !4, 1
          8        ASSIGN_DIM                                               !3, 0
          9        OP_DATA                                                  ~13
   10    10        INIT_FCALL                                               'debug_zval_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   11    13        INIT_FCALL                                               'debug_zval_dump'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
   12    16        INIT_FCALL                                               'debug_zval_dump'
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                                 
   14    19        ASSIGN_DIM                                               !3, 0
         20        OP_DATA                                                  10
   15    21        ASSIGN_DIM                                               !4, 1
         22        OP_DATA                                                  20
   17    23        FETCH_DIM_R                                      ~19     !0, 0
         24        CONCAT                                           ~20     ~19, '+'
         25        FETCH_DIM_R                                      ~21     !0, 1
         26        CONCAT                                           ~22     ~20, ~21
         27        ECHO                                                     ~22
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.72 ms | 1395 KiB | 15 Q