3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysqli_connect("sql6.freemysqlhosting.net","sql691953","xA9!eC2!","sql691953"); if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $username = $_POST['username']; $password = $_POST['password']; $result = mysqli_query($con,"SELECT Role FROM table1 where Username='$username' and Password='$password'"); $row = mysqli_fetch_array($result); $data = $row[0]; if($data){ echo $data; } 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.70.0180.00416.63
8.3.60.0090.00616.63
8.3.50.0070.01120.95
8.3.40.0120.00918.70
8.3.30.0110.00318.84
8.3.20.0080.00020.29
8.3.10.0040.00421.61
8.3.00.0090.00019.53
8.2.190.0120.00316.58
8.2.180.0160.00616.59
8.2.170.0070.00722.96
8.2.160.0040.01120.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00917.50
8.2.110.0060.00322.26
8.2.100.0120.00019.23
8.2.90.0000.00819.04
8.2.80.0050.00317.97
8.2.70.0000.00817.36
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0000.00719.34
8.2.30.0000.00917.92
8.2.20.0050.00317.54
8.2.10.0070.00017.97
8.2.00.0000.00717.95
8.1.280.0170.00325.92
8.1.270.0070.01121.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00722.65
8.1.230.0000.01117.42
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0100.00017.10
8.1.180.0000.00818.10
8.1.170.0080.00018.52
8.1.160.0030.00321.86
8.1.150.0040.00418.72
8.1.140.0060.00317.36
8.1.130.0030.00617.57
8.1.120.0030.00617.32
8.1.110.0000.00817.26
8.1.100.0000.00817.23
8.1.90.0000.00817.38
8.1.80.0080.00017.27
8.1.70.0070.00017.37
8.1.60.0000.00917.49
8.1.50.0070.00017.36
8.1.40.0040.00417.33
8.1.30.0040.00417.62
8.1.20.0060.00317.56
8.1.10.0000.00817.50
8.1.00.0040.00417.45
8.0.300.0050.00318.77
8.0.290.0000.00816.75
8.0.280.0070.00018.23
8.0.270.0030.00317.07
8.0.260.0080.00017.12
8.0.250.0000.00716.82
8.0.240.0000.00716.94
8.0.230.0040.00416.97
8.0.220.0060.00016.93
8.0.210.0000.00716.89
8.0.200.0030.00316.92
8.0.190.0050.00216.84
8.0.180.0040.00416.89
8.0.170.0050.00316.87
8.0.160.0000.00716.84
8.0.150.0040.00416.67
8.0.140.0030.00416.76
8.0.130.0000.00513.30
8.0.120.0000.00716.86
8.0.110.0070.00016.79
8.0.100.0000.00716.99
8.0.90.0040.00416.91
8.0.80.0000.01616.84
8.0.70.0000.00716.95
8.0.60.0040.00416.96
8.0.50.0040.00416.85
8.0.30.0060.01117.08
8.0.20.0110.00817.40
8.0.10.0070.00016.82
8.0.00.0090.01016.83
7.4.330.0030.00315.08
7.4.320.0000.00616.23
7.4.300.0000.00716.44
7.4.290.0000.00716.29
7.4.280.0080.00016.29
7.4.270.0070.00016.52
7.4.260.0070.00016.32
7.4.250.0050.00216.30
7.4.240.0040.00316.44
7.4.230.0040.00416.27
7.4.220.0120.00616.55
7.4.210.0100.01016.32
7.4.200.0000.00816.51
7.4.160.0060.01116.53
7.4.150.0090.00917.40
7.4.140.0150.00817.86
7.4.130.0040.01216.53
7.4.120.0110.00816.48
7.4.110.0090.00916.57
7.4.100.0090.00916.62
7.4.90.0130.00316.43
7.4.80.0130.00919.39
7.4.70.0090.00916.37
7.4.60.0090.00616.49
7.4.50.0040.00416.08
7.4.40.0080.01116.61
7.4.30.0220.00016.24
7.4.00.0090.00615.13
7.3.330.0050.00013.06
7.3.320.0000.00513.10
7.3.310.0040.00416.20
7.3.300.0000.00816.25
7.3.290.0110.00716.26
7.3.280.0050.01316.26
7.3.270.0110.01117.40
7.3.260.0070.01416.28
7.3.250.0110.00616.41
7.3.240.0070.01416.26
7.3.230.0110.01516.39
7.3.210.0090.00616.43
7.3.200.0130.00716.29
7.3.190.0170.00016.57
7.3.180.0070.00816.29
7.3.170.0080.01216.33
7.3.160.0060.01616.48
7.3.10.0170.00416.16
7.3.00.0130.00916.31
7.2.330.0100.00716.52
7.2.320.0100.01316.32
7.2.310.0060.01216.24
7.2.300.0080.00816.28
7.2.290.0110.00716.59
7.2.130.0110.00616.52
7.2.120.0140.00716.44
7.2.110.0120.00816.18
7.2.100.0110.00416.26
7.2.90.0110.01116.39
7.2.80.0170.00316.00
7.2.70.0110.00716.25
7.2.60.0050.00716.39
7.2.50.0150.00016.41
7.2.40.0070.01016.32
7.2.30.0110.00816.41
7.2.20.0170.00316.44
7.2.10.0120.01216.40
7.2.00.0090.01217.86
7.1.250.0100.01015.27
7.1.200.0100.01015.57
7.1.100.0040.00418.03
7.1.70.0030.01316.93
7.1.60.0040.00719.27
7.1.50.0040.00816.62
7.1.00.0100.07022.49
7.0.200.0000.00716.64
7.0.60.0100.08019.89
7.0.50.0030.08017.85
7.0.40.0130.04720.20
7.0.30.0570.07020.16
7.0.20.0330.05320.18
7.0.10.0070.09320.00
7.0.00.0070.03720.01
5.6.280.0030.07321.07
5.6.210.0030.04020.46
5.6.200.0000.05018.12
5.6.190.0100.04720.41
5.6.180.3430.04720.32
5.6.170.0370.07320.37
5.6.160.0070.03720.40
5.6.150.0070.03718.08
5.6.140.0070.07718.09
5.6.130.0030.07718.11
5.6.120.0100.07320.91
5.6.110.0030.06721.11
5.6.100.0100.08021.01
5.6.90.0030.04020.88
5.6.80.0170.05320.42
5.6.70.2870.03320.38
5.5.350.0000.08320.42
5.5.340.0030.04018.02
5.5.330.0070.04020.37
5.5.320.0330.02720.26
5.5.310.0230.08720.29
5.5.300.0100.07017.95
5.5.290.0030.08317.96
5.5.280.0030.08720.84
5.5.270.0170.07320.96
5.5.260.0100.08320.66
5.5.250.0030.04020.54
5.5.240.0330.06320.19
5.4.450.0100.06019.49
5.4.440.0130.06019.32
5.4.430.0230.04719.31
5.4.420.0030.06319.46
5.4.410.0170.05319.45
5.4.400.0070.06318.92
5.4.390.0070.06019.14
5.4.380.0130.05319.28
5.4.370.0170.06019.16
5.4.360.0200.05019.13
5.4.350.0170.05019.27
5.4.340.0030.07319.30
5.4.320.0170.05319.32
5.4.310.0170.05019.19
5.4.300.0130.05318.77
5.4.290.0100.05718.94
5.4.280.0230.04719.27
5.4.270.0030.06019.12
5.4.260.0270.04018.77
5.4.250.0070.06019.18
5.4.240.0200.05018.91
5.4.230.0200.04719.14
5.4.220.0230.04719.24
5.4.210.0070.06019.30
5.4.200.0130.05319.13
5.4.190.0100.05719.21
5.4.180.0200.04319.27
5.4.170.0170.05018.79
5.4.160.0200.04718.92
5.4.150.0170.05319.25
5.4.140.0130.06316.38
5.4.130.0030.06016.52
5.4.120.0070.05716.47
5.4.110.0130.05316.49
5.4.100.0230.04316.51
5.4.90.0170.04716.06
5.4.80.0230.04716.45
5.4.70.0230.06716.41
5.4.60.0270.04716.37
5.4.50.0070.07316.34
5.4.40.0000.07016.36
5.4.30.0030.03016.18
5.4.20.0230.04716.04

preferences:
51.98 ms | 401 KiB | 5 Q