3v4l.org

run code in 300+ PHP versions simultaneously
<?php mysql_connect(localhost,sunrise_sunrise,Xtrem6fTy)or die("cannot connect"); mysql_select_db(sunrise_triessorg)or die("cannot select DB"); // username and password sent from form $mroster=$_POST['mroster']; $mpass_word=$_POST['mpass_word']; // To protect MySQL injection (more detail about MySQL injection) $mroster = stripslashes($mroster); $mpass_word = stripslashes($mpass_word); $mroster = mysql_real_escape_string($mroster); $mpass_word = mysql_real_escape_string($mpass_word); $sql="SELECT * FROM mem_auth WHERE roster='$mroster' and pass_word='$mpass_word'"; $result=mysql_query($sql); // Mysql_num_row is counting table row $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table row must be 1 row if($count==1){ echo "$count"; echo "$mroster"; // Register $myusername, $mypassword and redirect to file "login_success.php" //session_register("mroster"); //session_register("mpass_word"); ?>

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.200.0170.04018.78
5.4.190.0200.03719.08
5.4.180.0230.06019.08
5.4.170.0300.05019.08
5.4.160.0400.03019.14
5.4.150.0270.06719.06
5.4.140.0270.03316.45
5.4.130.0200.07016.54
5.4.120.0230.06316.28
5.4.110.0330.05316.41
5.4.100.0270.05316.34
5.4.90.0130.04016.48
5.4.80.0170.05716.39
5.4.70.0270.04016.20
5.4.60.0230.07016.39
5.4.50.0200.05316.41
5.4.40.0200.06316.37
5.4.30.0200.06716.27
5.4.20.0200.07016.36
5.4.10.0200.07016.31
5.4.00.0200.05315.76
5.3.270.0200.04014.48
5.3.260.0330.03314.64
5.3.250.0230.05314.47
5.3.240.0230.07314.56
5.3.230.0300.06314.45
5.3.220.0300.05314.62
5.3.210.0200.07714.42
5.3.200.0030.06014.41
5.3.190.0230.04314.54
5.3.180.0270.07014.61
5.3.170.0230.07014.62
5.3.160.0300.05014.44
5.3.150.0170.06014.55
5.3.140.0200.05014.61
5.3.130.0170.06314.50
5.3.120.0130.06314.39
5.3.110.0230.07714.41
5.3.100.0170.03313.91
5.3.90.0200.07313.89
5.3.80.0200.05313.97
5.3.70.0170.06714.11
5.3.60.0200.06013.98
5.3.50.0170.07013.80
5.3.40.0130.05713.86
5.3.30.0170.05713.87
5.3.20.0100.05013.52
5.3.10.0130.03713.52
5.3.00.0100.04313.60

preferences:
139.8 ms | 1394 KiB | 7 Q