3v4l.org

run code in 300+ PHP versions simultaneously
<?php include ('inc/header.php'); $userUsername1 = $_POST['userUsername']; $userChangePassword = md5($_POST['userChangePassword']); $userChangePasswordConfirm = md5($_POST['userChangePasswordConfirm']); $userSecretCode = md5($_POST['userSecretCode']); $sql4 = "SELECT * FROM userinformation WHERE user_username = '" . $userUsername1 . "'"; $data2 = mysql_query($sql4, $cn) or die (mysql_error($cn)); $rowPW = mysql_num_rows($data2); $row1214 = mysql_fetch_assoc($data2); $DBuName = $row1214['user_username']; $DBCode = $row1214['user_code']; if ($userUsername1 == $DBuName){ if ($userSecretCode == $DBCode){ if ($rowPW == 1){ if ($userChangePassword != $userChangePasswordConfirm){?> <div class = "container" id = "bodyContainerVideo"> <div class = "row"> <div class = "col-md-12"> <h1 class = "Main-Title">Your new passwords do not match.</h1> </div> </div> </div> </body> </html><?php } else { $sql5 = "UPDATE userinformation SET user_password = '" . $userChangePassword . "' WHERE user_username = '" . $userUsername1 . "'"; $result5 = mysql_query($sql7, $cn) or die(mysql_error($cn));?> <div class = "container" id = "bodyContainerVideo"> <div class = "row"> <div class = "col-md-12"> <h1 class = "Main-Title">Your password has been sucessfully been changed</h1> </div> </div> </div> </body> </html> <?php } } else {?> <div class = "container" id = "bodyContainerVideo"> <div class = "row"> <div class = "col-md-12"> <h1 class = "Main-Title">The code that you put in is incorrect</h1> </div> </div> </div> </body> </html> <?php } else {?> <div class = "container" id = "bodyContainerVideo"> <div class = "row"> <div class = "col-md-12"> <h1 class = "Main-Title">Username does not exist.</h1> </div> </div> </div> </body> </html> <?php } } include ('inc/footer.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.350.0130.07019.24
5.4.340.0080.03612.02
5.4.320.0060.03812.51
5.4.310.0100.03512.51
5.4.300.0050.05112.51
5.4.290.0080.05212.51
5.4.280.0070.04012.41
5.4.270.0050.03912.40
5.4.260.0070.03912.41
5.4.250.0090.03612.41
5.4.240.0060.03812.40
5.4.230.0050.03812.40
5.4.220.0040.03912.40
5.4.210.0100.03212.39
5.4.200.0090.03412.39
5.4.190.0080.03412.39
5.4.180.0100.03412.39
5.4.170.0050.03812.40
5.4.160.0080.03312.40
5.4.150.0070.04012.39
5.4.140.0070.05212.09
5.4.130.0060.03812.06
5.4.120.0060.03612.03
5.4.110.0060.03612.03
5.4.100.0040.04012.03
5.4.90.0040.04012.03
5.4.80.0060.03912.03
5.4.70.0050.03812.02
5.4.60.0040.03712.02
5.4.50.0100.03812.03
5.4.40.0040.04012.01
5.4.30.0090.03712.01
5.4.20.0110.03212.00
5.4.10.0050.03912.00
5.4.00.0050.04111.50
5.3.290.0060.04712.80
5.3.280.0070.04212.71
5.3.270.0060.04012.72
5.3.260.0060.04412.72
5.3.250.0070.04212.72
5.3.240.0050.04312.72
5.3.230.0050.04512.71
5.3.220.0070.03712.68
5.3.210.0060.04212.68
5.3.200.0040.04312.68
5.3.190.0110.03612.68
5.3.180.0090.03712.68
5.3.170.0080.04012.66
5.3.160.0080.03412.67
5.3.150.0040.03912.68
5.3.140.0050.03712.66
5.3.130.0080.03812.66
5.3.120.0090.04712.66
5.3.110.0080.04012.66
5.3.100.0070.03612.12
5.3.90.0070.03512.08
5.3.80.0120.04212.07
5.3.70.0070.04212.07
5.3.60.0060.03712.06
5.3.50.0070.03812.00
5.3.40.0070.04112.00
5.3.30.0090.03711.96
5.3.20.0040.03711.74
5.3.10.0090.03711.71
5.3.00.0060.03811.70
5.2.170.0060.0309.20
5.2.160.0050.0369.20
5.2.150.0050.0319.20
5.2.140.0060.0439.20
5.2.130.0080.0349.16
5.2.120.0050.0289.16
5.2.110.0060.0289.16
5.2.100.0040.0309.16
5.2.90.0040.0329.16
5.2.80.0030.0329.16
5.2.70.0080.0279.16
5.2.60.0050.0319.11
5.2.50.0050.0339.08
5.2.40.0060.0279.05
5.2.30.0050.0309.03
5.2.20.0090.0299.02
5.2.10.0060.0298.94
5.2.00.0080.0258.80
5.1.60.0020.0268.09
5.1.50.0040.0358.08
5.1.40.0040.0288.06
5.1.30.0070.0278.41
5.1.20.0060.0308.43
5.1.10.0060.0368.16
5.1.00.0090.0248.16
5.0.50.0050.0226.64
5.0.40.0030.0216.50
5.0.30.0070.0286.31
5.0.20.0060.0206.28
5.0.10.0040.0216.26
5.0.00.0020.0326.25
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0020.0164.75
4.4.60.0040.0154.76
4.4.50.0040.0304.77
4.4.40.0060.0294.70
4.4.30.0030.0214.76
4.4.20.0030.0174.84
4.4.10.0030.0174.85
4.4.00.0030.0274.76
4.3.110.0020.0184.67
4.3.100.0030.0164.67
4.3.90.0030.0174.64
4.3.80.0020.0264.58
4.3.70.0030.0144.63
4.3.60.0020.0194.63
4.3.50.0030.0164.63
4.3.40.0020.0254.54
4.3.30.0030.0173.30
4.3.20.0030.0153.28
4.3.10.0050.0133.23
4.3.00.0000.0276.88

preferences:
141.56 ms | 1394 KiB | 7 Q