3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( empty( $mystring ) ) { echo "empty\n"; // empty } if ( $mystring == null ) { echo "null\n"; // Notice …; null } if ( !isset( $mystring ) ) { // unset 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/CFctU
function name:  (null)
number of ops:  11
compiled vars:  !0 = $mystring
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~1, ->3
    3     2    >   ECHO                                                     'empty%0A'
    5     3    >   IS_EQUAL                                                 !0, null
          4      > JMPZ                                                     ~2, ->6
    6     5    >   ECHO                                                     'null%0A'
    8     6    >   ISSET_ISEMPTY_CV                                 ~3      !0
          7        BOOL_NOT                                         ~4      ~3
          8      > JMPZ                                                     ~4, ->10
    9     9    >   ECHO                                                     'unset%0A'
   10    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.08 ms | 1393 KiB | 13 Q