3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.38 ms | 1392 KiB | 13 Q