3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); include_once 'include/validasiUser.php'; $user = new User(); if ($user->get_session()) { header("location:proses.php"); } if ($_SERVER["REQUEST_METHOD"] == "POST") { $login = $user->check_login($_POST['emailusername'], $_POST['password']); if ($login) { // Login Berhasil header("location:index.php"); } else { // Login Gagal echo '<center><b>Maaf, Email atau password yang anda masukkan <u>salah</u></b></center>'; } } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>FORM LOGIN</title> <style> body { font-family:Arial, Helvetica, sans-serif; } </style> </head> <body> <div id="container"><center> <div id="main-body"> <br/><br/> <form method="POST" action="" id="login_form" name="login"> <div class="head"> <b> LOGIN DISINI,<br><i>Email = afayuraputra@gmail.com</i> dan <i>Password = 115060800111025</i></b><br/><br/> </div> <label>Email </label><br/> <input type="text" name="emailusername" required="true"/><br/> <br/> <label>Password</label><br/> <input type="password" name="password" id="password" required="true"/><br/><br/> <input type="hidden" name="flag" value="login"/> <input type="submit" name="login_btn" onclick="return( submitregistration());" value="Login"/><br/><br/> </form> </div> </center> </div> </body> </html>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: include_once(): open_basedir restriction in effect. File(include/validasiUser.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/EPf03 on line 3 Warning: include_once(include/validasiUser.php): Failed to open stream: Operation not permitted in /in/EPf03 on line 3 Warning: include_once(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Uncaught Error: Class "User" not found in /in/EPf03:4 Stack trace: #0 {main} thrown in /in/EPf03 on line 4
Process exited with code 255.
Output for 8.0.13
Warning: include_once(include/validasiUser.php): Failed to open stream: No such file or directory in /in/EPf03 on line 3 Warning: include_once(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Uncaught Error: Class "User" not found in /in/EPf03:4 Stack trace: #0 {main} thrown in /in/EPf03 on line 4
Process exited with code 255.
Output for 7.3.33, 7.4.26, 7.4.33
Warning: include_once(include/validasiUser.php): failed to open stream: No such file or directory in /in/EPf03 on line 3 Warning: include_once(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Uncaught Error: Class 'User' not found in /in/EPf03:4 Stack trace: #0 {main} thrown in /in/EPf03 on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32
Warning: include_once(): open_basedir restriction in effect. File(include/validasiUser.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/EPf03 on line 3 Warning: include_once(include/validasiUser.php): failed to open stream: Operation not permitted in /in/EPf03 on line 3 Warning: include_once(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Uncaught Error: Class 'User' not found in /in/EPf03:4 Stack trace: #0 {main} thrown in /in/EPf03 on line 4
Process exited with code 255.
Output for 7.3.32
Warning: session_start(): open(/tmp/sess_8c39b5b3a5d52d48eb552b454f1f4044, O_RDWR) failed: No space left on device (28) in /in/EPf03 on line 2 Warning: session_start(): Failed to read session data: files (path: ) in /in/EPf03 on line 2 Warning: include_once(include/validasiUser.php): failed to open stream: No such file or directory in /in/EPf03 on line 3 Warning: include_once(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Uncaught Error: Class 'User' not found in /in/EPf03:4 Stack trace: #0 {main} thrown in /in/EPf03 on line 4
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Warning: include_once(): open_basedir restriction in effect. File(include/validasiUser.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/EPf03 on line 3 Warning: include_once(include/validasiUser.php): failed to open stream: Operation not permitted in /in/EPf03 on line 3 Warning: include_once(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Class 'User' not found in /in/EPf03 on line 4
Process exited with code 255.
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45
Warning: include_once(include/validasiUser.php): failed to open stream: No such file or directory in /in/EPf03 on line 3 Warning: include_once(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Class 'User' not found in /in/EPf03 on line 4
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
Warning: session_start(): Cannot send session cookie - headers already sent in /in/EPf03 on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/EPf03:2) in /in/EPf03 on line 2 Warning: include_once(include/validasiUser.php): failed to open stream: No such file or directory in /in/EPf03 on line 3 Warning: include_once(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Class 'User' not found in /in/EPf03 on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: session_start(): Cannot send session cookie - headers already sent in /in/EPf03 on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/EPf03:2) in /in/EPf03 on line 2 Warning: main(include/validasiUser.php): failed to open stream: No such file or directory in /in/EPf03 on line 3 Warning: main(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Class 'User' not found in /in/EPf03 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Warning: session_start(): Cannot send session cookie - headers already sent in /in/EPf03 on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/EPf03:2) in /in/EPf03 on line 2 Warning: main(include/validasiUser.php): failed to open stream: No such file or directory in /in/EPf03 on line 3 Warning: main(): Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Cannot instantiate non-existent class: user in /in/EPf03 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/EPf03 on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/EPf03:2) in /in/EPf03 on line 2 Warning: main(include/validasiUser.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/EPf03 on line 3 Warning: main() [http://www.php.net/function.main]: Failed opening 'include/validasiUser.php' for inclusion (include_path='.:') in /in/EPf03 on line 3 Fatal error: Cannot instantiate non-existent class: user in /in/EPf03 on line 4

preferences:
272.99 ms | 403 KiB | 460 Q