3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = '"; SELECT * FROM users; --'; $username = mysql_escape_string($username); $password = mysql_escape_string($password); $sql = "SELECT COUNT(*) FROM users WHERE username='$username' and password='$password'"; echo $sql;

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.0060.01218.43
8.3.50.0150.00017.86
8.3.40.0110.00418.79
8.3.30.0140.00018.79
8.3.20.0050.00318.79
8.3.10.0050.00321.85
8.3.00.0050.00317.80
8.2.180.0100.01016.63
8.2.170.0120.00322.96
8.2.160.0080.00620.94
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00319.41
8.2.120.0050.00326.35
8.2.110.0070.00321.12
8.2.100.0000.01117.78
8.2.90.0000.00817.78
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00417.91
8.2.50.0080.00018.07
8.2.40.0050.00321.24
8.2.30.0040.00418.00
8.2.20.0000.00717.60
8.2.10.0080.00018.07
8.2.00.0040.00418.02
8.1.280.0100.01025.92
8.1.270.0080.00023.88
8.1.260.0000.00928.09
8.1.250.0040.00428.09
8.1.240.0060.00322.65
8.1.230.0040.00820.70
8.1.220.0040.00417.74
8.1.210.0030.00618.82
8.1.200.0040.00417.36
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0070.00021.86
8.1.150.0050.00318.86
8.1.140.0070.00019.50
8.1.130.0070.00017.60
8.1.120.0070.00017.33
8.1.110.0000.00717.43
8.1.100.0040.00417.44
8.1.90.0030.00517.29
8.1.80.0040.00417.38
8.1.70.0030.00617.32
8.1.60.0020.00517.42
8.1.50.0040.00417.54
8.1.40.0030.00617.53
8.1.30.0040.00417.55
8.1.20.0040.00417.55
8.1.10.0000.00717.46
8.1.00.0050.00517.56
8.0.300.0080.00019.86
8.0.290.0040.00416.75
8.0.280.0040.00418.29
8.0.270.0030.00617.19
8.0.260.0030.00317.20
8.0.250.0050.00216.93
8.0.240.0000.00816.95
8.0.230.0040.00416.90
8.0.220.0070.00016.79
8.0.210.0030.00316.84
8.0.200.0000.00817.02
8.0.190.0080.00017.02
8.0.180.0030.00316.81
8.0.170.0000.00816.96
8.0.160.0030.00316.78
8.0.150.0030.00516.69
8.0.140.0000.00716.88
8.0.130.0050.00013.36
8.0.120.0030.00616.89
8.0.110.0030.00516.73
8.0.100.0050.00316.95
8.0.90.0000.00816.92
8.0.80.0130.00316.87
8.0.70.0040.00416.91
8.0.60.0030.00516.78
8.0.50.0000.00716.80
8.0.30.0090.00917.00
8.0.20.0100.00817.40
8.0.10.0090.00016.92
8.0.00.0130.00916.61
7.4.330.0050.00015.08
7.4.320.0070.00016.45
7.4.300.0070.00016.54
7.4.290.0070.00016.50
7.4.280.0030.00416.54
7.4.270.0000.00716.41
7.4.260.0070.00016.57
7.4.250.0040.00416.58
7.4.240.0040.00416.59
7.4.230.0050.00216.49
7.4.220.0090.00616.46
7.4.210.0130.00716.53
7.4.200.0000.00716.48
7.4.160.0160.00016.61
7.4.150.0100.00717.40
7.4.140.0160.00917.86
7.4.130.0120.00816.51
7.4.120.0080.00816.62
7.4.110.0110.00916.43
7.4.100.0060.00916.52
7.4.90.0110.00716.66
7.4.80.0110.00719.39
7.4.70.0150.00616.37
7.4.60.0100.00616.37
7.4.50.0100.00616.38
7.4.40.0120.00916.41
7.4.30.0060.00916.54
7.4.10.0040.01114.85
7.4.00.0080.00814.92
7.3.330.0040.00413.23
7.3.320.0050.00013.00
7.3.310.0070.00016.41
7.3.300.0060.00016.26
7.3.290.0090.01116.23
7.3.280.0100.00616.27
7.3.270.0070.01117.40
7.3.260.0080.00816.37
7.3.250.0110.00916.33
7.3.240.0120.00616.35
7.3.230.0100.00716.39
7.3.210.0160.00016.43
7.3.200.0060.00919.39
7.3.190.0090.01216.20
7.3.180.0150.00916.52
7.3.170.0170.00016.39
7.3.160.0130.00616.21
7.3.130.0110.00714.58
7.3.120.0090.00914.57
7.3.110.0140.00414.59
7.3.100.0030.01214.91
7.3.90.0150.00014.60
7.3.80.0070.00714.66
7.3.70.0060.00914.79
7.3.60.0110.00414.60
7.3.50.0060.00314.58
7.3.40.0100.00314.89
7.3.30.0090.00314.80
7.3.20.0030.01016.66
7.3.10.0080.00516.65
7.3.00.0070.00416.37
7.2.330.0120.00616.16
7.2.320.0150.00616.44
7.2.310.0110.00716.50
7.2.300.0030.01616.42
7.2.290.0100.00716.34
7.2.260.0070.01015.03
7.2.250.0090.00914.77
7.2.240.0100.00614.79
7.2.230.0030.00614.59
7.2.220.0060.00915.14
7.2.210.0070.00714.91
7.2.200.0060.00314.96
7.2.190.0090.00315.00
7.2.180.0040.00814.91
7.2.170.0040.00814.70
7.2.160.0100.00314.79
7.2.150.0090.00016.65
7.2.140.0030.01216.63
7.2.130.0080.00416.87
7.2.120.0030.01016.64
7.2.110.0040.01016.64
7.2.100.0000.01716.84
7.2.90.0060.00916.87
7.2.80.0020.01216.70
7.2.70.0030.01216.69
7.2.60.0040.01116.78
7.2.50.0060.00816.74
7.2.40.0050.00716.69
7.2.30.0030.01216.72
7.2.20.0070.00916.88
7.2.10.0090.00516.88
7.2.00.0000.01417.51
7.1.330.0060.00615.68
7.1.320.0130.00015.77
7.1.310.0080.00615.47
7.1.300.0070.00515.59
7.1.290.0120.00015.56
7.1.280.0090.00315.51
7.1.270.0040.00415.43
7.1.260.0000.01415.53
7.1.250.0060.00415.61
7.1.240.0060.00915.46
7.1.230.0100.00715.59
7.1.220.0090.00315.40
7.1.210.0000.01015.68
7.1.200.0090.00215.49
7.1.190.0100.00715.51
7.1.180.0030.00615.60
7.1.170.0100.00315.79
7.1.160.0000.01315.61
7.1.150.0050.00515.41
7.1.140.0060.00315.67
7.1.130.0070.00715.71
7.1.120.0000.01115.38
7.1.110.0080.00415.63
7.1.100.0020.01316.85
7.1.90.0030.00915.71
7.1.80.0060.00615.54
7.1.70.0050.00916.36
7.1.60.0070.01217.60
7.1.50.0040.01116.15
7.1.40.0060.00915.69
7.1.30.0060.00315.46
7.1.20.0070.00715.36
7.1.10.0030.00615.68
7.1.00.0030.04219.01
7.0.330.0040.00715.19
7.0.320.0030.01015.28
7.0.310.0070.00715.07
7.0.300.0030.00715.34
7.0.290.0000.00915.20
7.0.280.0040.00715.02
7.0.270.0070.00715.20
7.0.260.0070.00415.45
7.0.250.0000.01215.11
7.0.240.0040.00415.30
7.0.230.0100.00015.39
7.0.220.0030.00814.95
7.0.210.0030.00715.36
7.0.200.0030.01015.76
7.0.190.0070.01015.14
7.0.180.0100.00715.38
7.0.170.0060.00615.22
7.0.160.0050.00815.04
7.0.150.0080.00415.42
7.0.140.0040.00815.15
7.0.130.0120.00314.98
7.0.120.0000.01315.36
7.0.110.0030.01014.99
7.0.100.0080.00315.02
7.0.90.0040.00715.26
7.0.80.0100.00715.26
7.0.70.0030.00715.34
7.0.60.0200.03017.57
7.0.50.0070.03617.74
7.0.40.0070.03516.70
7.0.30.0070.03716.76
7.0.20.0120.03016.72
7.0.10.0090.03316.75
7.0.00.0200.03316.66
5.6.400.0040.01114.29
5.6.390.0000.01113.98
5.6.380.0080.00414.10
5.6.370.0090.00314.28
5.6.360.0040.00814.10
5.6.350.0040.01114.36
5.6.340.0030.01414.30
5.6.330.0050.00314.03
5.6.320.0060.00614.35
5.6.310.0030.01314.38
5.6.300.0110.00414.25
5.6.290.0110.00013.84
5.6.280.0030.04317.63
5.6.270.0090.00014.04
5.6.260.0080.00314.06
5.6.250.0040.00414.26
5.6.240.0120.00014.23
5.6.230.0090.00914.40
5.6.220.0090.00314.02
5.6.210.0110.04217.32
5.6.200.0200.03017.60
5.6.190.0250.04017.54
5.6.180.0110.03117.53
5.6.170.0070.04217.51
5.6.160.0160.03217.60
5.6.150.0150.03317.57
5.6.140.0150.03317.84
5.6.130.0220.02917.73
5.6.120.0130.03017.61
5.6.110.0130.03317.57
5.6.100.0150.03217.44
5.6.90.0080.03517.60
5.6.80.0070.03417.23
5.6.70.0120.03717.35
5.6.60.0230.02717.15
5.6.50.0150.02817.43
5.6.40.0100.03217.36
5.6.30.0150.02817.29
5.6.20.0080.03317.28
5.6.10.0120.03217.36
5.6.00.0150.02817.35
5.5.380.0000.01413.90
5.5.370.0080.00814.08
5.5.360.0070.00713.87
5.5.350.0130.02017.12
5.5.340.0120.02817.50
5.5.330.0150.03317.33
5.5.320.0100.03517.47
5.5.310.0220.02817.42
5.5.300.0150.03317.45
5.5.290.0130.03617.55
5.5.280.0140.03117.34
5.5.270.0070.03817.60
5.5.260.0120.02917.51
5.5.250.0070.03917.26
5.5.240.0100.03017.23
5.5.230.0130.03217.16
5.5.220.0180.02817.15
5.5.210.0030.03717.05
5.5.200.0070.03516.92
5.5.190.0170.02717.13
5.5.180.0120.03216.89
5.5.170.0030.01314.21
5.5.160.0130.03017.29
5.5.150.0080.03217.16
5.5.140.0150.02617.03
5.5.130.0170.02517.22
5.5.120.0130.02917.13
5.5.110.0190.02317.18
5.5.100.0130.03217.15
5.5.90.0150.02716.98
5.5.80.0160.02917.01
5.5.70.0090.03717.11
5.5.60.0170.02416.95
5.5.50.0100.03217.21
5.5.40.0180.02516.91
5.5.30.0100.03017.10
5.5.20.0110.04116.91
5.5.10.0130.03317.02
5.5.00.0080.03716.93

preferences:
67.31 ms | 400 KiB | 5 Q