3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "0"; $c = $b = empty($a); $b = 1; $d = ++$b + $a; echo $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DjW0c
function name:  (null)
number of ops:  10
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        ASSIGN                                                   !2, 1
    5     5        PRE_INC                                          ~9      !2
          6        ADD                                              ~10     ~9, !0
          7        ASSIGN                                                   !3, ~10
    6     8        ECHO                                                     !2
    7     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.44 ms | 1392 KiB | 13 Q