3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Nate Lundie require("funcs.php"); connectDB(); $email = $_GET['n']; $old_pass = $_GET['op']; $new_pass = $_GET['np']; $results = "SELECT * FROM app_users WHERE email = '$email'"; $info = mysql_fetch_array(mysql_query($results)); $hash = info['password']; //if(password_verify($old_pass, $hash)) //{ $new_pass_hashed = password_hash("$new_pass", PASSWORD_DEFAULT); mysql_query("UPDATE app_users SET password= '$new_pass_hashed' WHERE email= '$email'"); die("your password has been updated, please login with your new info"): //} //else{ // die("Old Password does not match"); //} ?>

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.280.0080.04612.38
5.4.270.0080.04512.38
5.4.260.0090.04212.38
5.4.250.0090.05612.38
5.4.240.0110.04812.38
5.4.230.0110.04212.37
5.4.220.0090.05112.37
5.4.210.0070.05012.37
5.4.200.0080.05312.37
5.4.190.0070.05212.37
5.4.180.0070.04912.37
5.4.170.0070.04412.38
5.4.160.0110.04412.37
5.4.150.0100.04912.37
5.4.140.0110.04912.06
5.4.130.0080.04812.04
5.4.120.0100.04812.00
5.4.110.0100.04712.00
5.4.100.0120.04412.00
5.4.90.0080.05212.00
5.4.80.0090.04912.00
5.4.70.0090.05211.99
5.4.60.0100.05012.00
5.4.50.0090.05811.99
5.4.40.0100.05011.99
5.4.30.0120.04911.98
5.4.20.0090.06011.98
5.4.10.0070.05211.98
5.4.00.0100.06711.48
5.3.280.0100.04912.71
5.3.270.0110.05312.72
5.3.260.0090.05412.72
5.3.250.0080.05412.72
5.3.240.0100.06612.72
5.3.230.0080.05112.71
5.3.220.0090.04612.68
5.3.210.0110.04612.68
5.3.200.0090.05212.68
5.3.190.0090.06312.68
5.3.180.0090.04912.67
5.3.170.0080.05012.67
5.3.160.0100.04812.67
5.3.150.0100.05712.67
5.3.140.0080.05312.66
5.3.130.0130.04812.66
5.3.120.0100.05412.65
5.3.110.0070.05412.66
5.3.100.0080.05312.12
5.3.90.0120.04912.08
5.3.80.0100.04912.07
5.3.70.0110.04912.08
5.3.60.0080.04512.07
5.3.50.0110.04812.00
5.3.40.0120.03912.00
5.3.30.0080.05211.95
5.3.20.0080.04311.72
5.3.10.0090.03611.68
5.3.00.0100.04311.67

preferences:
134.82 ms | 1394 KiB | 7 Q