3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //Check to see if the user click the button if(isset($_POST['submit'])) { $user=$_POST['user']; $pass=$_POST['pass']; //Prevent MySQL Injections $user  = stripslashes($user); $pass  = stripslashes($pass); $user = mysqli_real_escape_string($con, $user); $pass = mysqli_real_escape_string($con, $pass); //Check to see if the user left any space empty! if($user == "" || $pass == "") { echo "Please fill in all the information!"; } //Check to see if the username AND password MATCHES the username AND password in the DB else { if ($count == 1) { $_SESSION['username']=$user; //Create a session for the user! header ("location: members.php"); } else{   echo "Username and Password DO NOT MATCH! TRY AGAIN!";   } } } ?> <html> <table width="300" align="center" cellpadding="0" cellspacing="1" border="1px solid black"> <tr> <form name="register" method="POST" action="login.php"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td colspan="3"><strong><center>Login </center></strong></td> </tr> <tr> <td width="78">Username</td> <td width="6">:</td> <td width="294"><input name="user" type="text" id="user"></td> </tr> <tr> <td>Password</td> <td>:</td> <td><input name="pass" type="password" id="pass"></td> </tr> <tr> <td></td> <td></td> <td><input type="submit" name="submit" value="Login"></td> </tr> </table> </td> </form> </tr> </table> </html>
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/uYeYa on line 32
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO in /in/uYeYa on line 32
Process exited with code 255.