3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysqli_connect("localhost8080","a3876682_kami","Kawasakizx10r","a3876682_tonikam") or die(mysql_error()); $username = $_POST["username"]; $password = $_POST["password"]; $statement = mysqli_prepare($con, "SELECT * FROM User WHERE username = ? AND password = ?"); mysqli_stmt_bind_param($statement, "ss", $username, $password); mysqli_stmt_execute($statement); mysqli_stmt_store_result($statement); mysqli_stmt_bind_result($statement, $userID, $name, $age, $username, $password); //$user = array(); while($user=mysqli_stmt_fetch($statement)){ $user["name"] = $name; $user["age"] = $age; $user["username"] = $username; $user["password"] = $password; } echo json_encode($user); mysqli_close($con); ?>

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)
8.3.60.0150.00718.55
8.3.50.0120.00521.01
8.3.40.0140.00318.92
8.3.30.0100.01018.54
8.3.20.0040.00420.34
8.3.10.0080.00023.61
8.3.00.0000.00819.69
8.2.180.0060.00916.88
8.2.170.0150.00622.96
8.2.160.0070.00719.34
8.2.150.0100.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0060.00317.50
8.2.110.0070.00321.05
8.2.100.0090.00317.91
8.2.90.0000.00818.98
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0090.00017.91
8.2.50.0030.00618.10
8.2.40.0040.00419.38
8.2.30.0070.00019.66
8.2.20.0040.00417.59
8.2.10.0040.00418.01
8.2.00.0000.00718.01
8.1.280.0070.01325.92
8.1.270.0000.00720.41
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.88
8.1.230.0070.00720.97
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00616.88
8.1.190.0090.00017.23
8.1.180.0050.00318.10
8.1.170.0040.00418.54
8.1.160.0080.00022.02
8.1.150.0080.00018.70
8.1.140.0030.00517.29
8.1.130.0030.00317.35
8.1.120.0000.00717.41
8.1.110.0000.00817.36
8.1.100.0040.00417.38
8.1.90.0080.00017.38
8.1.80.0030.00517.41
8.1.70.0040.00417.29
8.1.60.0040.00417.44
8.1.50.0030.00617.54
8.1.40.0040.00417.38
8.1.30.0040.00417.72
8.1.20.0050.00317.49
8.1.10.0000.00817.59
8.1.00.0000.00717.37
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0070.00018.34
8.0.270.0030.00517.14
8.0.260.0030.00316.85
8.0.250.0000.00817.02
8.0.240.0000.00716.94
8.0.230.0000.00616.87
8.0.220.0030.00316.96
8.0.210.0070.00016.82
8.0.200.0030.00317.00
8.0.190.0040.00416.96
8.0.180.0030.00716.90
8.0.170.0000.00716.98
8.0.160.0040.00416.98
8.0.150.0000.00716.92
8.0.140.0030.00316.88
8.0.130.0050.00013.34
8.0.120.0050.00316.87
8.0.110.0040.00416.97
8.0.100.0070.00016.88
8.0.90.0050.00316.96
8.0.80.0000.01716.95
8.0.70.0040.00316.86
8.0.60.0050.00216.87
8.0.50.0000.00716.93
8.0.30.0090.01117.14
8.0.20.0120.00617.40
8.0.10.0000.00817.07
8.0.00.0100.01016.69
7.4.330.0050.00015.08
7.4.320.0000.00616.32
7.4.300.0000.00616.48
7.4.290.0090.00016.33
7.4.280.0030.00516.57
7.4.270.0030.00316.59
7.4.260.0030.00316.45
7.4.250.0030.00516.49
7.4.240.0060.00216.47
7.4.230.0000.00716.46
7.4.220.0100.00616.56
7.4.210.0080.00916.64
7.4.200.0030.00316.64
7.4.160.0080.00816.58
7.4.150.0100.01017.40
7.4.140.0060.01517.86
7.4.130.0100.01216.48
7.4.120.0090.00816.61
7.4.110.0080.00816.55
7.4.100.0090.00916.50
7.4.90.0150.00316.51
7.4.80.0140.00319.39
7.4.70.0030.01316.58
7.4.60.0130.00516.34
7.4.50.0030.00316.53
7.4.40.0060.00916.53
7.4.30.0140.00416.28
7.4.00.0080.00814.87
7.3.330.0050.00013.19
7.3.320.0000.00513.04
7.3.310.0000.00816.25
7.3.300.0070.00016.39
7.3.290.0090.00916.27
7.3.280.0100.00716.29
7.3.270.0140.01017.40
7.3.260.0110.00616.25
7.3.250.0100.01016.37
7.3.240.0050.01116.25
7.3.230.0120.00616.59
7.3.210.0060.01016.56
7.3.200.0080.00816.38
7.3.190.0180.00716.29
7.3.180.0080.00816.53
7.3.170.0060.00916.47
7.3.160.0070.01016.40
7.3.10.0000.01316.56
7.3.00.0140.00016.69
7.2.330.0130.00516.62
7.2.320.0120.00616.20
7.2.310.0070.01016.41
7.2.300.0180.00016.48
7.2.290.0120.00616.31
7.2.130.0030.01016.62
7.2.120.0030.01016.80
7.2.110.0060.00316.89
7.2.100.0080.00716.67
7.2.90.0070.00716.58
7.2.80.0100.00316.30
7.2.70.0080.00416.61
7.2.60.0050.01216.63
7.2.50.0040.01216.60
7.2.40.0060.00616.92
7.2.30.0110.00016.80
7.2.20.0040.00816.61
7.2.10.0050.00516.81
7.2.00.0050.00717.96
7.1.250.0030.00915.43
7.1.200.0080.00815.41
7.1.100.0030.00917.59
7.1.70.0070.00317.11
7.1.60.0100.01319.17
7.1.50.0230.01034.82
7.1.00.0030.07722.36
7.0.200.0000.00816.56
7.0.90.0400.05719.92
7.0.80.0530.07719.85
7.0.70.0370.08319.88
7.0.60.0530.07020.02
7.0.50.0170.04320.41
7.0.40.0030.04020.15
7.0.30.0130.03320.14
7.0.20.0170.02720.08
7.0.10.0030.04020.09
7.0.00.0030.04020.03
5.6.280.0000.03321.08
5.6.240.0130.07720.46
5.6.230.0100.08020.49
5.6.220.0070.05720.63
5.6.210.0000.04720.47
5.6.200.0070.04021.14
5.6.190.0070.04021.04
5.6.180.0030.04021.04
5.6.170.0030.04320.96
5.6.160.0000.04721.09
5.6.150.0000.04321.05
5.6.140.0070.08720.94
5.6.130.0100.06021.08
5.6.120.0030.04321.00
5.6.110.0030.04020.93
5.6.100.0070.03721.13
5.6.90.0100.03721.04
5.6.80.0030.04020.44
5.6.70.0170.03720.48
5.6.60.0000.04020.45
5.6.50.0030.04020.50
5.6.40.0000.04320.31
5.6.30.0030.05020.37
5.6.20.0070.04320.36
5.6.10.0100.03720.38
5.6.00.0030.07320.39
5.5.380.0000.08720.30
5.5.370.0130.07720.36
5.5.360.0170.03320.36
5.5.350.0000.04320.32
5.5.340.0000.04320.88
5.5.330.0200.03020.87
5.5.320.0030.05320.81
5.5.310.0100.03320.88
5.5.300.0100.07320.84
5.5.290.0100.04320.90
5.5.280.0030.05020.88
5.5.270.0000.05020.88
5.5.260.0030.04020.75
5.5.250.0070.03720.75
5.5.240.0030.03720.25
5.5.230.0070.07320.18
5.5.220.0070.03720.30
5.5.210.0070.04720.31
5.5.200.0070.03720.28
5.5.190.0070.03320.30
5.5.180.0070.05719.98
5.5.160.0100.05720.12
5.5.150.0030.04020.23
5.5.140.0070.03720.27
5.5.130.0100.07320.25
5.5.120.0030.03720.13
5.5.110.0070.08020.18
5.5.100.0130.07720.05
5.5.90.0100.07320.07
5.5.80.0070.07720.02
5.5.70.0170.07020.07
5.5.60.0030.06720.09
5.5.50.0100.07320.15
5.5.40.0100.07319.96
5.5.30.0100.07320.05
5.5.20.0030.05320.04
5.5.10.0030.06320.09
5.5.00.0030.05019.95
5.4.450.0030.04019.45
5.4.440.0000.04719.29
5.4.430.0030.04019.37
5.4.420.0070.03719.36
5.4.410.0130.03019.25
5.4.400.0030.04318.81
5.4.390.0100.03019.06
5.4.380.0030.03719.23
5.4.370.0130.05319.04
5.4.360.0000.04318.90
5.4.350.0130.03318.96
5.4.340.0000.04319.03
5.4.320.0070.03718.81
5.4.310.0030.03718.98
5.4.300.0100.03019.07
5.4.290.0030.06318.96
5.4.280.0070.06718.96
5.4.270.0070.07019.02
5.4.260.0130.06719.15
5.4.250.0200.05719.11
5.4.240.0130.07019.05
5.4.230.0100.07718.89
5.4.220.0070.08018.80
5.4.210.0130.07019.02
5.4.200.0100.04319.12
5.4.190.0100.07019.02
5.4.180.0100.07319.13
5.4.170.0100.07318.77
5.4.160.0130.07318.92
5.4.150.0130.07318.79
5.4.140.0030.04016.43
5.4.130.0030.08016.32
5.4.120.0070.06316.28
5.4.110.0130.06716.25
5.4.100.0230.05716.26
5.4.90.0100.06716.26
5.4.80.0030.07016.20
5.4.70.0070.06716.20
5.4.60.0070.06716.29
5.4.50.0070.07316.23
5.4.40.0070.07316.41
5.4.30.0030.07016.24
5.4.20.0100.06716.38
5.4.10.0000.07316.19
5.4.00.0100.06715.76

preferences:
60.39 ms | 401 KiB | 5 Q