3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP session_start(); session_register("sess"); session_register("mode"); error_reporting(E_ERROR | E_PARSE); if (isset($_SESSION["sess"])) { if ($_SESSION["mode"]=="preview") $admin=false; else $admin=true; }else{ $admin=false; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aIXHM
function name:  (null)
number of ops:  24
compiled vars:  !0 = $admin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL_BY_NAME                                       'session_register'
          3        SEND_VAL_EX                                              'sess'
          4        DO_FCALL                                      0          
    4     5        INIT_FCALL_BY_NAME                                       'session_register'
          6        SEND_VAL_EX                                              'mode'
          7        DO_FCALL                                      0          
    5     8        INIT_FCALL                                               'error_reporting'
          9        SEND_VAL                                                 5
         10        DO_ICALL                                                 
    6    11        FETCH_IS                                         ~5      '_SESSION'
         12        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 'sess'
         13      > JMPZ                                                     ~6, ->22
    7    14    >   FETCH_R                      global              ~7      '_SESSION'
         15        FETCH_DIM_R                                      ~8      ~7, 'mode'
         16        IS_EQUAL                                                 ~8, 'preview'
         17      > JMPZ                                                     ~9, ->20
    8    18    >   ASSIGN                                                   !0, <false>
         19      > JMP                                                      ->21
   10    20    >   ASSIGN                                                   !0, <true>
         21    > > JMP                                                      ->23
   12    22    >   ASSIGN                                                   !0, <false>
   13    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.72 ms | 1395 KiB | 17 Q