3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Admin Panel</title> <link href="style.css" type="text/css" rel="stylesheet" /> </head> <body id="admin"> <div id="wrapper"> <?php if(isset($_SESSION['name'])) { echo "<h3>Welcome to the Admin Panel, ". $_SESSION['name']."</h3>"; } else { header('location: index.php'); } ?> <p><a href="logout.php">Logout</a></p> </div> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PBfLB
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    2     2        ECHO                                                     '%3C%21DOCTYPE+html+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Strict%2F%2FEN%22%0A%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd%22%3E%0A%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22+xml%3Alang%3D%22en%22+lang%3D%22en%22%3E%0A%3Chead%3E%0A+++++%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Dutf-8%22%2F%3E%0A+++++%3Ctitle%3EAdmin+Panel%3C%2Ftitle%3E%0A+++++%3Clink+href%3D%22style.css%22+type%3D%22text%2Fcss%22+rel%3D%22stylesheet%22+%2F%3E%0A%3C%2Fhead%3E%0A%3Cbody+id%3D%22admin%22%3E%0A++++%3Cdiv+id%3D%22wrapper%22%3E%0A++++'
   13     3        FETCH_IS                                         ~1      '_SESSION'
          4        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, 'name'
          5      > JMPZ                                                     ~2, ->12
   14     6    >   FETCH_R                      global              ~3      '_SESSION'
          7        FETCH_DIM_R                                      ~4      ~3, 'name'
          8        CONCAT                                           ~5      '%3Ch3%3EWelcome+to+the+Admin+Panel%2C+', ~4
          9        CONCAT                                           ~6      ~5, '%3C%2Fh3%3E'
         10        ECHO                                                     ~6
         11      > JMP                                                      ->15
   16    12    >   INIT_FCALL                                               'header'
         13        SEND_VAL                                                 'location%3A+index.php'
         14        DO_ICALL                                                 
   19    15    >   ECHO                                                     '++++++++++++%3Cp%3E%3Ca+href%3D%22logout.php%22%3ELogout%3C%2Fa%3E%3C%2Fp%3E++++++++++++%0A++++%3C%2Fdiv%3E%0A%0A%3C%2Fbody%3E%0A%0A%3C%2Fhtml%3E'
   24    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.03 ms | 1395 KiB | 17 Q