3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = null; if (false === $value || (empty($value) && '0' != $value)) { echo 'invalid'; } echo empty($value); echo '0' != $value;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 7
Branch analysis from position: 8
filename:       /in/bl2jv
function name:  (null)
number of ops:  15
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        TYPE_CHECK                                    4  ~2      !0
          2      > JMPNZ_EX                                         ~2      ~2, ->8
          3    >   ISSET_ISEMPTY_CV                                 ~3      !0
          4      > JMPZ_EX                                          ~3      ~3, ->7
          5    >   IS_NOT_EQUAL                                     ~4      !0, '0'
          6        BOOL                                             ~3      ~4
          7    >   BOOL                                             ~2      ~3
          8    > > JMPZ                                                     ~2, ->10
    5     9    >   ECHO                                                     'invalid'
    8    10    >   ISSET_ISEMPTY_CV                                 ~5      !0
         11        ECHO                                                     ~5
    9    12        IS_NOT_EQUAL                                     ~6      !0, '0'
         13        ECHO                                                     ~6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.69 ms | 1393 KiB | 13 Q