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 git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.6 ms | 402 KiB | 8 Q