3v4l.org

run code in 300+ PHP versions simultaneously
<?phpsession_start();if(!isset($_SESSION['usr']) || !isset($_SESSION['pswd'])){header("Location: niceform.php");}include 'logoff.html';?><?php session_start(); echo session_id();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 10
filename:       /in/2JLTH
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL_BY_NAME                                       'phpsession_start'
          1        DO_FCALL                                      0          
          2        FETCH_IS                                         ~1      '_SESSION'
          3        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      ~1, 'usr'
          4        BOOL_NOT                                         ~3      ~2
          5      > JMPNZ_EX                                         ~3      ~3, ->10
          6    >   FETCH_IS                                         ~4      '_SESSION'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      ~4, 'pswd'
          8        BOOL_NOT                                         ~6      ~5
          9        BOOL                                             ~3      ~6
         10    > > JMPZ                                                     ~3, ->14
         11    >   INIT_FCALL                                               'header'
         12        SEND_VAL                                                 'Location%3A+niceform.php'
         13        DO_ICALL                                                 
         14    >   INCLUDE_OR_EVAL                                          'logoff.html', INCLUDE
    2    15        INIT_FCALL                                               'session_start'
         16        DO_ICALL                                                 
    3    17        INIT_FCALL                                               'session_id'
         18        DO_ICALL                                         $10     
         19        ECHO                                                     $10
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.26 ms | 1395 KiB | 19 Q