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>
Output for 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7

preferences:
47.77 ms | 743 KiB | 4 Q