3v4l.org

run code in 500+ PHP versions simultaneously
<?php session_start(); if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) { header("Location: login.php"); exit; } ?> <!DOCTYPE html> <html lang="ar" dir="rtl"> <head> <meta charset="UTF-8"> <title>لوحة التحكم</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="login-card"> <h2>أهلاً بك يا مدير</h2> <form action="save.php" method="POST"> <textarea name="question" placeholder="اكتب سؤال RGIE هنا..." style="width:100%; height:80px; margin-bottom:10px;" required></textarea> <input type="text" name="answer" placeholder="اكتب الإجابة هنا..." style="width:100%; padding:10px; margin-bottom:10px;" required> <button type="submit" style="width:100%; padding:10px; background:#28a745; color:white; border:none; cursor:pointer;">حفظ السؤال</button> </form> <br> <p>لقد دخلت إلى لوحة التحكم بنجاح!</p> <a href="logout.php">تسجيل الخروج</a> </div> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/HOIqI
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'session_start'
          1        DO_ICALL                                                     
    3     2        FETCH_IS                                             ~1      '_SESSION'
          3        ISSET_ISEMPTY_DIM_OBJ                             0  ~2      ~1, 'loggedin'
          4        BOOL_NOT                                             ~3      ~2
          5      > JMPNZ_EX                                             ~3      ~3, ->10
          6    >   FETCH_R                          global              ~4      '_SESSION'
          7        FETCH_DIM_R                                          ~5      ~4, 'loggedin'
          8        TYPE_CHECK                                      1014  ~6      ~5
          9        BOOL                                                 ~3      ~6
         10    > > JMPZ                                                         ~3, ->16
    4    11    >   INIT_FCALL                                                   'header'
         12        SEND_VAL                                                     'Location%3A+login.php'
         13        DO_ICALL                                                     
    5    14      > INIT_FCALL                                                   'exit'
         15*       DO_ICALL                                                     
    8    16    >   ECHO                                                         '%3C%21DOCTYPE+html%3E%0A%3Chtml+lang%3D%22ar%22+dir%3D%22rtl%22%3E%0A%3Chead%3E%0A++++%3Cmeta+charset%3D%22UTF-8%22%3E%0A++++%3Ctitle%3E%D9%84%D9%88%D8%AD%D8%A9+%D8%A7%D9%84%D8%AA%D8%AD%D9%83%D9%85%3C%2Ftitle%3E%0A++++%3Clink+rel%3D%22stylesheet%22+href%3D%22style.css%22%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%3Cdiv+class%3D%22login-card%22%3E%0A++++%3Ch2%3E%D8%A3%D9%87%D9%84%D8%A7%D9%8B+%D8%A8%D9%83+%D9%8A%D8%A7+%D9%85%D8%AF%D9%8A%D8%B1%3C%2Fh2%3E%0A++++%3Cform+action%3D%22save.php%22+method%3D%22POST%22%3E%0A++++++++%3Ctextarea+name%3D%22question%22+placeholder%3D%22%D8%A7%D9%83%D8%AA%D8%A8+%D8%B3%D8%A4%D8%A7%D9%84+RGIE+%D9%87%D9%86%D8%A7...%22+style%3D%22width%3A100%25%3B+height%3A80px%3B+margin-bottom%3A10px%3B%22+required%3E%3C%2Ftextarea%3E%0A++++++++%3Cinput+type%3D%22text%22+name%3D%22answer%22+placeholder%3D%22%D8%A7%D9%83%D8%AA%D8%A8+%D8%A7%D9%84%D8%A5%D8%AC%D8%A7%D8%A8%D8%A9+%D9%87%D9%86%D8%A7...%22+style%3D%22width%3A100%25%3B+padding%3A10px%3B+margin-bottom%3A10px%3B%22+required%3E%0A++++++++%3Cbutton+type%3D%22submit%22+style%3D%22width%3A100%25%3B+padding%3A10px%3B+background%3A%2328a745%3B+color%3Awhite%3B+border%3Anone%3B+cursor%3Apointer%3B%22%3E%D8%AD%D9%81%D8%B8+%D8%A7%D9%84%D8%B3%D8%A4%D8%A7%D9%84%3C%2Fbutton%3E%0A++++%3C%2Fform%3E%0A++++%3Cbr%3E%0A++++%3Cp%3E%D9%84%D9%82%D8%AF+%D8%AF%D8%AE%D9%84%D8%AA+%D8%A5%D9%84%D9%89+%D9%84%D9%88%D8%AD%D8%A9+%D8%A7%D9%84%D8%AA%D8%AD%D9%83%D9%85+%D8%A8%D9%86%D8%AC%D8%A7%D8%AD%21%3C%2Fp%3E%0A++++%3Ca+href%3D%22logout.php%22%3E%D8%AA%D8%B3%D8%AC%D9%8A%D9%84+%D8%A7%D9%84%D8%AE%D8%B1%D9%88%D8%AC%3C%2Fa%3E%0A%3C%2Fdiv%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   28    17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170 ms | 1368 KiB | 16 Q