3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = FALSE; $var1 = "bello"; if(!empty($var1) && $var1 !== false) { echo 'not empty'; } else { echo 'empty'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/HO0Ze
function name:  (null)
number of ops:  12
compiled vars:  !0 = $var, !1 = $var1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <false>
    4     1        ASSIGN                                                   !1, 'bello'
    6     2        ISSET_ISEMPTY_CV                                 ~4      !1
          3        BOOL_NOT                                         ~5      ~4
          4      > JMPZ_EX                                          ~5      ~5, ->7
          5    >   TYPE_CHECK                                  1018  ~6      !1
          6        BOOL                                             ~5      ~6
          7    > > JMPZ                                                     ~5, ->10
    7     8    >   ECHO                                                     'not+empty'
          9      > JMP                                                      ->11
    9    10    >   ECHO                                                     'empty'
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.88 ms | 1393 KiB | 13 Q