3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); if(isset($_SESSION['uname']) ){ echo("Authorised"); } else { echo("Unauthorised"); } ?> <html> <body> Login Successful </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EPJJn
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    4     2        FETCH_IS                                         ~1      '_SESSION'
          3        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, 'uname'
          4      > JMPZ                                                     ~2, ->7
    5     5    >   ECHO                                                     'Authorised'
          6      > JMP                                                      ->8
    8     7    >   ECHO                                                     'Unauthorised'
   11     8    >   ECHO                                                     '%0A%3Chtml%3E%0A%3Cbody%3E%0ALogin+Successful%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   16     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.06 ms | 1385 KiB | 15 Q