3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = '0'; var_dump(empty($foo)); var_dump(!isset($foo) || !$foo);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/4aSPZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0'
    4     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_CV                                 ~2      !0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        ISSET_ISEMPTY_CV                                 ~4      !0
          7        BOOL_NOT                                         ~5      ~4
          8      > JMPNZ_EX                                         ~5      ~5, ->11
          9    >   BOOL_NOT                                         ~6      !0
         10        BOOL                                             ~5      ~6
         11    >   SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.28 ms | 939 KiB | 16 Q