3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.41 ms | 1393 KiB | 13 Q