3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 'On'); if(!empty($_REQUEST)) { $username = htmlspecialchars($_REQUEST["username"]); $s1 = htmlspecialchars($_REQUEST["s1"]); $s2 = htmlspecialchars($_REQUEST["s2"]); //session_name("first"); //session_start(); $_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"]; header("Location:strings.php"); } /* else if (isset($_SESSION["username"]) && isset($_SESSION["s1"]) && isset($_SESSION["s2"])) { header("Location:strings.php"); } else { header("Location:input.php"); }*/ ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 37
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/p6Yto
function name:  (null)
number of ops:  38
compiled vars:  !0 = $username, !1 = $s1, !2 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 'On'
          3        DO_ICALL                                                 
    8     4        ISSET_ISEMPTY_VAR                             3  ~4      '_REQUEST'
          5        BOOL_NOT                                         ~5      ~4
          6      > JMPZ                                                     ~5, ->37
   11     7    >   INIT_FCALL                                               'htmlspecialchars'
          8        FETCH_R                      global              ~6      '_REQUEST'
          9        FETCH_DIM_R                                      ~7      ~6, 'username'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !0, $8
   12    13        INIT_FCALL                                               'htmlspecialchars'
         14        FETCH_R                      global              ~10     '_REQUEST'
         15        FETCH_DIM_R                                      ~11     ~10, 's1'
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !1, $12
   13    19        INIT_FCALL                                               'htmlspecialchars'
         20        FETCH_R                      global              ~14     '_REQUEST'
         21        FETCH_DIM_R                                      ~15     ~14, 's2'
         22        SEND_VAL                                                 ~15
         23        DO_ICALL                                         $16     
         24        ASSIGN                                                   !2, $16
   19    25        FETCH_W                      global              $18     '_SESSION'
         26        ASSIGN_DIM                                               $18, 'username'
         27        OP_DATA                                                  !0
   20    28        FETCH_W                      global              $20     '_SESSION'
         29        ASSIGN_DIM                                               $20, 's1'
         30        OP_DATA                                                  !1
   21    31        FETCH_W                      global              $22     '_SESSION'
         32        ASSIGN_DIM                                               $22, 's2'
         33        OP_DATA                                                  !2
   25    34        INIT_FCALL                                               'header'
         35        SEND_VAL                                                 'Location%3Astrings.php'
         36        DO_ICALL                                                 
   51    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.99 ms | 1396 KiB | 19 Q