3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['UserEmail'])&&isset($_POST['P_word'])){ $UserEmail = $_POST["UserEmail"]; $P_word = $_POST["P_word"]; $P_word_hash = md5($P_word); if (!empty($UserEmail)&&!empty($P_word)){ $query = "SELECT 'UserEmail', 'P_word' FROM 'userslogin' WHERE 'UserEmail' = '$UserEmail' And 'P_word' = '$P_word_hash'"; if ($query_run = mysql_query($query)){ $query_num_rows = $query_num_rows($query_run); if($query_num_rows ==0){ echo 'invalid username or password.'; } else if ($query_num_rows==1){ //$user_id = mysql_result($query_run, 0, 'UserEmail'); //$_SESSION('userid') = $user_id; echo 'well done'; echo 'Welcome <a href="logout.php">Log out</a>';//not sure about header('Location: Homepage.php');// create a homepage } } } ?>
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected end of file in /in/t1nGR on line 23
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/t1nGR on line 23
Process exited with code 255.

preferences:
178.69 ms | 1395 KiB | 58 Q