3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $mystring = null; if (empty($mystring)) { echo 'empty\n'; } if ($mystring == null) { echo 'null\n'; // and warning } if (!isset($mystring)) { echo 'unset\n'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
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: 6
Branch analysis from position: 3
filename:       /in/U2bvg
function name:  (null)
number of ops:  11
compiled vars:  !0 = $mystring
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~1, ->3
    5     2    >   ECHO                                                     'empty%5Cn'
    8     3    >   IS_EQUAL                                                 !0, null
          4      > JMPZ                                                     ~2, ->6
    9     5    >   ECHO                                                     'null%5Cn'
   12     6    >   ISSET_ISEMPTY_CV                                 ~3      !0
          7        BOOL_NOT                                         ~4      ~3
          8      > JMPZ                                                     ~4, ->10
   13     9    >   ECHO                                                     'unset%5Cn'
   14    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.65 ms | 1393 KiB | 13 Q