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 } } } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.220.0140.04912.34
5.4.210.0200.06312.34
5.4.200.0130.04512.34
5.4.190.0120.04612.34
5.4.180.0100.04712.34
5.4.170.0130.04512.35
5.4.160.0140.04712.34
5.4.150.0160.04712.34
5.4.140.0110.04512.03
5.4.130.0180.06512.01
5.4.120.0150.05711.98
5.4.110.0250.09511.97
5.4.100.0140.05811.97
5.4.90.0150.05211.97
5.4.80.0140.05211.97
5.4.70.0150.05411.97
5.4.60.0190.05811.96
5.4.50.0170.05511.96
5.4.40.0140.04911.96
5.4.30.0160.05011.96
5.4.20.0130.05411.95
5.4.10.0180.06011.95
5.4.00.0170.05411.45
5.3.270.0180.05112.72
5.3.260.0190.05312.72
5.3.250.0340.07312.72
5.3.240.0160.06012.72
5.3.230.0160.05412.71
5.3.220.0160.05112.68
5.3.210.0110.05812.68
5.3.200.0190.05212.68
5.3.190.0160.04912.68
5.3.180.0140.05012.67
5.3.170.0210.07612.67
5.3.160.0160.05212.67
5.3.150.0180.07212.67
5.3.140.0190.06812.66
5.3.130.0150.06612.66
5.3.120.0390.10212.65
5.3.110.0150.04912.66
5.3.100.0140.05212.12
5.3.90.0220.07312.08
5.3.80.0140.04912.07
5.3.70.0140.04612.07
5.3.60.0240.07112.06
5.3.50.0160.04912.00
5.3.40.0250.06512.00
5.3.30.0250.06711.94
5.3.20.0180.05411.72
5.3.10.0130.04511.69
5.3.00.0150.04911.67

preferences:
134.98 ms | 1386 KiB | 7 Q