3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = ''; var_dump(isset($var)); echo PHP_EOL; var_dump(!empty($var)); echo PHP_EOL; if ($var) { echo 'var'; } else { echo 'not var'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aPF9c
function name:  (null)
number of ops:  17
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    5     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_CV                                 ~2      !0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    6     5        ECHO                                                     '%0A'
    7     6        INIT_FCALL                                               'var_dump'
          7        ISSET_ISEMPTY_CV                                 ~4      !0
          8        BOOL_NOT                                         ~5      ~4
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
    8    11        ECHO                                                     '%0A'
    9    12      > JMPZ                                                     !0, ->15
   10    13    >   ECHO                                                     'var'
         14      > JMP                                                      ->16
   12    15    >   ECHO                                                     'not+var'
   13    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.02 ms | 1386 KiB | 15 Q