3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0; $a = &$x; $b = &$a; $x = 2; unset($x); $b++; echo $a . ', ' . $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6rqU3
function name:  (null)
number of ops:  10
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        ASSIGN_REF                                               !1, !0
    5     2        ASSIGN_REF                                               !2, !1
    6     3        ASSIGN                                                   !0, 2
    7     4        UNSET_CV                                                 !0
    8     5        PRE_INC                                                  !2
   10     6        CONCAT                                           ~8      !1, '%2C+'
          7        CONCAT                                           ~9      ~8, !2
          8        ECHO                                                     ~9
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.2 ms | 1396 KiB | 13 Q