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" style="width: 80%; max-width: 600px;"> <h2>أهلاً بك يا مدير النظام</h2> <p>هنا يمكنك إضافة أسئلة من ملف RGIE.</p> <form action="save_question.php" method="POST"> <textarea name="question" placeholder="اكتب السؤال هنا..." style="width:100%; height:100px; margin: 10px 0;"></textarea> <input type="text" name="answer" placeholder="الإجابة الصحيحة"> <button type="submit">إضافة السؤال للقاعدة</button> </form> <br> <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:
56.3 ms | 743 KiB | 4 Q