3v4l.org

run code in 300+ PHP versions simultaneously
<?php // We didn't check $_POST['password'], it could be anything the user wanted! For example: $username = 'aidan'; $password = "' OR ''='"; // Query database to check if there are any matching users $query = "SELECT * FROM users WHERE user='{$_POST['username']}' AND password='{$_POST['password']}'"; // This means the query sent to MySQL would be: echo $query; ?>

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.0110.00416.72
8.3.50.0140.00622.01
8.3.40.0090.00618.68
8.3.30.0090.00619.04
8.3.20.0050.00320.21
8.3.10.0070.00021.85
8.3.00.0110.00017.50
8.2.180.0110.00716.63
8.2.170.0100.01022.96
8.2.160.0140.00022.13
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00726.16
8.2.120.0040.00419.78
8.2.110.0030.00719.25
8.2.100.0040.00817.75
8.2.90.0060.00319.05
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0080.00018.03
8.2.50.0050.00318.07
8.2.40.0070.00418.16
8.2.30.0060.00318.23
8.2.20.0040.00417.72
8.2.10.0040.00417.99
8.2.00.0040.00417.68
8.1.280.0070.00725.92
8.1.270.0030.00620.79
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.19
8.1.230.0090.00317.48
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0090.00017.25
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0080.00020.44
8.1.160.0040.00422.06
8.1.150.0000.00818.84
8.1.140.0050.00317.36
8.1.130.0000.00717.86
8.1.120.0000.00817.47
8.1.110.0040.00417.43
8.1.100.0080.00017.43
8.1.90.0040.00417.45
8.1.80.0000.00717.51
8.1.70.0030.00317.33
8.1.60.0090.00017.56
8.1.50.0000.00817.41
8.1.40.0040.00417.39
8.1.30.0000.00817.68
8.1.20.0070.00017.62
8.1.10.0040.00417.52
8.1.00.0030.00617.43
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0040.00418.51
8.0.270.0050.00317.25
8.0.260.0070.00017.19
8.0.250.0000.00716.95
8.0.240.0000.00716.90
8.0.230.0040.00416.96
8.0.220.0000.00616.88
8.0.210.0070.00016.96
8.0.200.0000.00816.88
8.0.190.0040.00317.07
8.0.180.0030.00517.03
8.0.170.0000.00816.80
8.0.160.0040.00416.99
8.0.150.0000.00717.01
8.0.140.0040.00416.80
8.0.130.0000.00613.41
8.0.120.0040.00416.84
8.0.110.0000.00716.88
8.0.100.0030.00516.95
8.0.90.0020.00516.77
8.0.80.0110.00416.97
8.0.70.0000.00716.97
8.0.60.0000.00716.82
8.0.50.0070.00016.99
8.0.30.0130.01017.06
8.0.20.0120.01117.40
8.0.10.0070.00017.02
8.0.00.0110.00816.68
7.4.330.0020.00215.03
7.4.320.0030.00316.40
7.4.300.0050.00516.64
7.4.290.0000.00916.54
7.4.280.0060.00316.50
7.4.270.0080.00016.49
7.4.260.0030.00516.58
7.4.250.0000.00716.41
7.4.240.0040.00416.50
7.4.230.0070.00016.34
7.4.220.0090.00916.49
7.4.210.0050.01216.48
7.4.200.0000.00716.48
7.4.160.0040.01316.56
7.4.150.0160.00817.40
7.4.140.0050.01417.86
7.4.130.0100.00716.44
7.4.120.0100.00616.41
7.4.110.0100.01316.55
7.4.100.0060.01016.42
7.4.90.0090.00916.55
7.4.80.0130.00619.39
7.4.70.0180.00016.52
7.4.60.0090.00616.80
7.4.50.0080.00016.41
7.4.40.0130.01016.42
7.4.30.0090.01416.67
7.4.00.0070.00715.19
7.3.330.0030.00313.12
7.3.320.0000.01313.27
7.3.310.0030.00316.40
7.3.300.0040.00416.23
7.3.290.0070.00016.23
7.3.280.0100.00616.30
7.3.270.0160.01017.40
7.3.260.0070.01016.27
7.3.250.0080.00816.36
7.3.240.0110.00816.38
7.3.230.0080.00816.39
7.3.210.0100.00716.46
7.3.200.0090.01319.39
7.3.190.0100.01016.76
7.3.180.0190.00316.45
7.3.170.0110.01116.40
7.3.160.0120.01216.36
7.2.330.0180.00016.47
7.2.320.0100.01016.55
7.2.310.0100.00716.63
7.2.300.0100.01016.65
7.2.290.0090.00916.45
7.2.00.0090.00619.16
7.1.200.0000.01115.65
7.1.100.0070.00318.13
7.1.70.0070.00417.11
7.1.60.0070.01719.46
7.1.50.0170.00934.75
7.1.00.0000.07722.54
7.0.200.0200.00314.86
7.0.140.0170.06721.92
7.0.60.0070.07320.04
7.0.50.0100.05017.81
7.0.40.0100.08020.28
7.0.30.0130.06020.09
7.0.20.0270.05320.13
7.0.10.0030.09020.21
7.0.00.0130.08320.12
5.6.280.0000.07721.11
5.6.210.0070.08320.72
5.6.200.0000.04318.09
5.6.190.0030.04720.42
5.6.180.0430.04720.60
5.6.170.0130.04320.71
5.6.160.0100.05320.40
5.6.150.0030.07318.11
5.6.140.0070.07718.18
5.6.130.0100.08318.16
5.6.120.0070.08320.96
5.6.110.0170.06020.97
5.6.100.0230.07020.95
5.6.90.0100.08320.98
5.6.80.0170.06720.37
5.5.350.0330.06320.38
5.5.340.0170.07017.95
5.5.330.0030.04720.21
5.5.320.3000.03720.41
5.5.310.0200.03720.41
5.5.300.0130.07717.94
5.5.290.0170.07017.95
5.5.280.0070.08720.89
5.5.270.0070.03720.62
5.5.260.0100.04020.79
5.5.250.0030.04020.57
5.5.240.0070.07320.24
5.4.450.0700.04719.55
5.4.440.0330.04319.10
5.4.430.0270.06719.09
5.4.420.0770.05319.60
5.4.410.0270.06719.34
5.4.400.0100.06018.76
5.4.390.0270.04318.72
5.4.380.0170.05718.65
5.4.370.0170.05718.61
5.4.360.0130.05318.65
5.4.350.0270.06018.63
5.4.340.0170.05018.65
5.4.320.0070.06318.46
5.4.310.0170.05018.68
5.4.300.0200.06718.68
5.4.290.0200.05718.59
5.4.280.0100.05718.71
5.4.270.0200.04318.71
5.4.260.0070.05718.61
5.4.250.0130.05318.73
5.4.240.0170.05318.62
5.4.230.0130.05318.63
5.4.220.0170.05318.66
5.4.210.0070.06018.73
5.4.200.0230.05016.73
5.4.190.0100.05718.61
5.4.180.0270.04718.70
5.4.170.0130.05318.62
5.4.160.0200.05018.44
5.4.150.0100.05718.54
5.4.140.0230.05316.20
5.4.130.0300.04716.22
5.4.120.0130.05016.30
5.4.110.0170.04716.11
5.4.100.0200.05016.00
5.4.90.0070.06016.22
5.4.80.0170.04716.20
5.4.70.0130.05315.98
5.4.60.0100.05316.05
5.4.50.0170.04716.21
5.4.40.0100.05716.16
5.4.30.0200.04316.36
5.4.20.0130.05316.09
5.4.10.0200.04316.18
5.4.00.0200.04015.67
5.3.290.0170.05314.57
5.3.280.0070.05714.69
5.3.270.0100.07314.63
5.3.260.0100.05714.69
5.3.250.0230.05014.60
5.3.240.0230.06314.57
5.3.230.0130.05714.59
5.3.220.0230.05014.47
5.3.210.0170.05014.51
5.3.200.0100.05714.56
5.3.190.0130.05314.46
5.3.180.0170.05014.47
5.3.170.0200.05014.62
5.3.160.0170.04714.55
5.3.150.0100.05714.53
5.3.140.0170.05014.55
5.3.130.0230.04714.44
5.3.120.0100.05714.45
5.3.110.0230.04314.59
5.3.100.0100.06014.08
5.3.90.0070.06013.93
5.3.80.0030.06713.96
5.3.70.0170.04714.02
5.3.60.0130.05014.03
5.3.50.0130.05013.89
5.3.40.0200.04714.02
5.3.30.0170.04314.00
5.3.20.0170.04713.76
5.3.10.0170.04713.64
5.3.00.0170.05013.55
5.2.170.0070.04711.11
5.2.160.0030.04711.10
5.2.150.0170.03711.20
5.2.140.0130.04011.29
5.2.130.0130.03711.25
5.2.120.0030.04711.03
5.2.110.0100.04311.14
5.2.100.0070.04311.06
5.2.90.0070.04711.25
5.2.80.0070.04711.07
5.2.70.0070.04711.07
5.2.60.0070.04311.03
5.2.50.0100.04310.98
5.2.40.0130.04310.92
5.2.30.0070.05310.93
5.2.20.0070.04310.98
5.2.10.0130.03710.92
5.2.00.0130.04010.82
5.1.60.0030.04010.02
5.1.50.0100.03310.05
5.1.40.0100.0339.93
5.1.30.0100.03310.34
5.1.20.0100.03710.36
5.1.10.0130.03310.11
5.1.00.0070.03710.13
5.0.50.0100.0278.57
5.0.40.0070.0278.44
5.0.30.0070.0438.36
5.0.20.0130.0308.17
5.0.10.0000.0338.18
5.0.00.0030.0478.27
4.4.90.0100.0205.84
4.4.80.0070.0205.89
4.4.70.0030.0235.90
4.4.60.0030.0275.96
4.4.50.0070.0205.88
4.4.40.0030.0375.88
4.4.30.0030.0275.86
4.4.20.0030.0235.88
4.4.10.0030.0235.94
4.4.00.0000.0435.91
4.3.110.0030.0235.80
4.3.100.0070.0205.84
4.3.90.0100.0235.80
4.3.80.0000.0375.77
4.3.70.0030.0235.87
4.3.60.0100.0175.79
4.3.50.0070.0205.87
4.3.40.0130.0275.88
4.3.30.0000.0274.61
4.3.20.0030.0234.56
4.3.10.0070.0204.52
4.3.00.0100.0237.20

preferences:
62.29 ms | 401 KiB | 5 Q