3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "0"; $c = $b = empty($a); $d = ++$b + $a; #echo $d; echo $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QYvrb
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $c, !2 = $b, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0'
    3     1        ISSET_ISEMPTY_CV                                 ~5      !0
          2        ASSIGN                                           ~6      !2, ~5
          3        ASSIGN                                                   !1, ~6
    4     4        PRE_INC                                          ~8      !2
          5        ADD                                              ~9      ~8, !0
          6        ASSIGN                                                   !3, ~9
    7     7        ECHO                                                     !2
    8     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.48 ms | 1384 KiB | 13 Q