3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once('config.php'); require_once('login.php'); if($_GET['action']=='update'){ if($_POST['newpassword'] && $_POST['oldpassword']){ $pwd = mysql_real_escape_string($_POST['newpassword']); $pwd1 = mysql_real_escape_string($_POST['newpassword1']); if($pwd==$pwd1){ $oldpwd = mysql_real_escape_string($_POST['oldpassword']); $user_name = $_SESSION['user_name']; $querychk6 = mysql_query("SELECT * FROM $tbl_name WHERE user_name = '$user_name' AND password = '$oldpassword'"); $true = mysql_num_rows($querychk6); if($true=='1'){ $query6 = "UPDATE $tbl_name SET password = '$pwd' WHERE user_name = '$user_name' AND password = '$oldpwd'"; $result1 = mysql_query( $query6 ) or die(mysql_error()); $responsemsg = "Password changed successfully!"; header("Location: members.php?msg_gr=".$responsemsg); } else { $responsemsg = "Error! You entered wrong old password!"; } } else { $responsemsg = "Sorry, You entered different passwords in verification!"; } require_once('header.php'); ?> <?php if (isSet($_GET['msg_gr'])){ echo "<span style='display:block;margin-top:20px;text-align:center;color:green;font-weight:bold;'>".htmlentities($_GET['msg_gr'])."</span><br/>"; } ?> <?php if (isSet($responsemsg)){ echo "<span style='display:block;margin-top:20px;text-align:center;color:red;font-weight:bold;'>".htmlentities($responsemsg)."</span><br/>"; } ?> <form name="form3" method="post" action=""> <strong>Change Password </strong> Old Password: <input name="oldpassword" type="password" id="oldpassword" /> New Password: <input name="newpassword" type="password" id="newpassword" /> Type Password again: <input name="newpassword1" type="password" id="newpassword1" /> <input type="submit" name="Submit" value="Change" /></form> <?php } ?> Welcome, <?=$_SESSION['fullname']?><br /> <br /> <br /> What you want to do?<br /> <a href="?view=downloads" >Browse through our downloads</<br /> <?php require_once('header.php'); ?>

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.190.0110.03912.36
5.4.180.0090.04212.36
5.4.170.0080.04012.38
5.4.160.0090.04312.37
5.4.150.0110.04212.37
5.4.140.0100.04012.05
5.4.130.0090.04212.04
5.4.120.0100.03612.00
5.4.110.0080.04012.00
5.4.100.0090.04112.00
5.4.90.0130.05312.00
5.4.80.0110.04212.00
5.4.70.0110.03511.99
5.4.60.0090.03611.99
5.4.50.0090.03611.99
5.4.40.0070.03911.98
5.4.30.0150.05211.97
5.4.20.0080.03811.97
5.4.10.0080.03711.98
5.4.00.0080.03811.47
5.3.270.0090.04212.72
5.3.260.0090.04212.72
5.3.250.0100.03912.72
5.3.240.0100.04312.72
5.3.230.0100.04312.71
5.3.220.0110.03812.68
5.3.210.0110.04112.68
5.3.200.0110.03712.68
5.3.190.0110.04612.68
5.3.180.0100.04512.67
5.3.170.0090.04512.67
5.3.160.0100.04712.67
5.3.150.0090.04612.67
5.3.140.0090.04512.66
5.3.130.0100.04612.66
5.3.120.0100.04712.66
5.3.110.0120.04712.66
5.3.100.0140.05512.12
5.3.90.0090.04112.08
5.3.80.0100.04312.07
5.3.70.0110.04212.08
5.3.60.0100.04312.07
5.3.50.0130.05612.00
5.3.40.0130.04212.00
5.3.30.0120.04211.97
5.3.20.0120.04211.75
5.3.10.0080.04511.71
5.3.00.0100.04411.70

preferences:
156.39 ms | 1394 KiB | 7 Q