3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0; $a = array(&$x); $b = $a; $x = 2; unset($x); $b[1]++; $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/ppeaP
function name:  (null)
number of ops:  16
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
    8     6        FETCH_DIM_RW                                     $8      !2, 1
          7        PRE_INC                                                  $8
    9     8        FETCH_DIM_RW                                     $10     !2, 0
          9        PRE_INC                                                  $10
   10    10        FETCH_DIM_R                                      ~12     !1, 0
         11        CONCAT                                           ~13     ~12, '+'
         12        FETCH_DIM_R                                      ~14     !2, 0
         13        CONCAT                                           ~15     ~13, ~14
         14        ECHO                                                     ~15
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.73 ms | 1384 KiB | 13 Q