3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); //ini_set('display_errors', 'On'); if(!empty($_REQUEST)) { $username = htmlspecialchars($_REQUEST["username"]); $s1 = htmlspecialchars($_REQUEST["s1"]); $s2 = htmlspecialchars($_REQUEST["s2"]); //session_name("first"); $_SESSION["username"] = $username; // implicit call to session_start() if not already called $_SESSION["s1"] = $s1; // call session_name() first to start named session $_SESSION["s2"] = $s2; //echo "Vars are".$_SESSION["username"].$_SESSION["s1"].$_SESSION["s2"]; if (isset($_SESSION["username"]) && isset($_SESSION["s1"]) && isset($_SESSION["s2"])) { echo "true"; } else { echo "false"; //header("Location: strings.php"); exit; } } else if (isset($_SESSION["username"]) && isset($_SESSION["s1"]) && isset($_SESSION["s2"])) { header("Location: strings.php"); exit; } else { header("Location: input.php"); exit; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 48
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 35, Position 2 = 38
Branch analysis from position: 35
2 jumps found. (Code = 46) Position 1 = 39, Position 2 = 42
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 45
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 42
Branch analysis from position: 38
Branch analysis from position: 48
2 jumps found. (Code = 46) Position 1 = 51, Position 2 = 54
Branch analysis from position: 51
2 jumps found. (Code = 46) Position 1 = 55, Position 2 = 58
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 59, Position 2 = 64
Branch analysis from position: 59
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 64
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 58
Branch analysis from position: 54
filename:       /in/FNc3m
function name:  (null)
number of ops:  69
compiled vars:  !0 = $username, !1 = $s1, !2 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    7     2        ISSET_ISEMPTY_VAR                             3  ~4      '_REQUEST'
          3        BOOL_NOT                                         ~5      ~4
          4      > JMPZ                                                     ~5, ->48
   10     5    >   INIT_FCALL                                               'htmlspecialchars'
          6        FETCH_R                      global              ~6      '_REQUEST'
          7        FETCH_DIM_R                                      ~7      ~6, 'username'
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !0, $8
   11    11        INIT_FCALL                                               'htmlspecialchars'
         12        FETCH_R                      global              ~10     '_REQUEST'
         13        FETCH_DIM_R                                      ~11     ~10, 's1'
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !1, $12
   12    17        INIT_FCALL                                               'htmlspecialchars'
         18        FETCH_R                      global              ~14     '_REQUEST'
         19        FETCH_DIM_R                                      ~15     ~14, 's2'
         20        SEND_VAL                                                 ~15
         21        DO_ICALL                                         $16     
         22        ASSIGN                                                   !2, $16
   17    23        FETCH_W                      global              $18     '_SESSION'
         24        ASSIGN_DIM                                               $18, 'username'
         25        OP_DATA                                                  !0
   18    26        FETCH_W                      global              $20     '_SESSION'
         27        ASSIGN_DIM                                               $20, 's1'
         28        OP_DATA                                                  !1
   19    29        FETCH_W                      global              $22     '_SESSION'
         30        ASSIGN_DIM                                               $22, 's2'
         31        OP_DATA                                                  !2
   23    32        FETCH_IS                                         ~24     '_SESSION'
         33        ISSET_ISEMPTY_DIM_OBJ                         0  ~25     ~24, 'username'
         34      > JMPZ_EX                                          ~25     ~25, ->38
         35    >   FETCH_IS                                         ~26     '_SESSION'
         36        ISSET_ISEMPTY_DIM_OBJ                         0  ~27     ~26, 's1'
         37        BOOL                                             ~25     ~27
         38    > > JMPZ_EX                                          ~25     ~25, ->42
         39    >   FETCH_IS                                         ~28     '_SESSION'
         40        ISSET_ISEMPTY_DIM_OBJ                         0  ~29     ~28, 's2'
         41        BOOL                                             ~25     ~29
         42    > > JMPZ                                                     ~25, ->45
   24    43    >   ECHO                                                     'true'
         44      > JMP                                                      ->47
   26    45    >   ECHO                                                     'false'
   29    46      > EXIT                                                     
         47    > > JMP                                                      ->68
   32    48    >   FETCH_IS                                         ~30     '_SESSION'
         49        ISSET_ISEMPTY_DIM_OBJ                         0  ~31     ~30, 'username'
         50      > JMPZ_EX                                          ~31     ~31, ->54
         51    >   FETCH_IS                                         ~32     '_SESSION'
         52        ISSET_ISEMPTY_DIM_OBJ                         0  ~33     ~32, 's1'
         53        BOOL                                             ~31     ~33
         54    > > JMPZ_EX                                          ~31     ~31, ->58
         55    >   FETCH_IS                                         ~34     '_SESSION'
         56        ISSET_ISEMPTY_DIM_OBJ                         0  ~35     ~34, 's2'
         57        BOOL                                             ~31     ~35
         58    > > JMPZ                                                     ~31, ->64
   33    59    >   INIT_FCALL                                               'header'
         60        SEND_VAL                                                 'Location%3A+strings.php'
         61        DO_ICALL                                                 
   34    62      > EXIT                                                     
         63*       JMP                                                      ->68
   37    64    >   INIT_FCALL                                               'header'
         65        SEND_VAL                                                 'Location%3A+input.php'
         66        DO_ICALL                                                 
   38    67      > EXIT                                                     
   40    68    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.02 ms | 1400 KiB | 19 Q