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.0160.00318.31
8.3.50.0070.01221.05
8.3.40.0070.00718.55
8.3.30.0120.00618.88
8.3.20.0050.00318.70
8.3.10.0040.00421.68
8.3.00.0050.00317.80
8.2.180.0140.00716.61
8.2.170.0110.00322.96
8.2.160.0100.00320.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00019.31
8.2.120.0040.00426.35
8.2.110.0070.00420.89
8.2.100.0000.01317.63
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0030.00617.46
8.2.60.0000.00917.80
8.2.50.0000.00818.07
8.2.40.0060.00321.11
8.2.30.0000.00818.00
8.2.20.0040.00417.55
8.2.10.0040.00418.04
8.2.00.0050.00317.98
8.1.280.0150.00625.92
8.1.270.0070.00023.87
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0100.00023.96
8.1.230.0060.00617.54
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.25
8.1.190.0000.00817.23
8.1.180.0050.00218.10
8.1.170.0060.00318.53
8.1.160.0040.00421.87
8.1.150.0000.00718.82
8.1.140.0050.00219.42
8.1.130.0030.00317.57
8.1.120.0040.00417.37
8.1.110.0000.00717.34
8.1.100.0050.00317.45
8.1.90.0080.00017.45
8.1.80.0040.00417.38
8.1.70.0070.00317.45
8.1.60.0040.00417.39
8.1.50.0000.00817.54
8.1.40.0080.00017.41
8.1.30.0050.00317.63
8.1.20.0000.00717.59
8.1.10.0030.00617.57
8.1.00.0060.00317.43
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0020.00518.25
8.0.270.0030.00617.19
8.0.260.0000.00617.06
8.0.250.0080.00016.98
8.0.240.0080.00016.93
8.0.230.0070.00016.96
8.0.220.0050.00316.91
8.0.210.0030.00316.93
8.0.200.0040.00416.95
8.0.190.0070.00017.01
8.0.180.0000.00716.78
8.0.170.0030.00516.78
8.0.160.0070.00016.91
8.0.150.0030.00516.73
8.0.140.0040.00416.84
8.0.130.0030.00313.31
8.0.120.0000.00816.84
8.0.110.0070.00016.88
8.0.100.0040.00416.91
8.0.90.0050.00316.71
8.0.80.0120.00316.86
8.0.70.0040.00416.74
8.0.60.0000.00716.69
8.0.50.0040.00416.95
8.0.30.0100.01017.03
8.0.20.0120.00917.40
8.0.10.0040.00417.04
8.0.00.0110.00616.64
7.4.330.0000.00515.08
7.4.320.0070.00016.58
7.4.300.0030.00316.51
7.4.290.0070.00016.51
7.4.280.0050.00516.58
7.4.270.0040.00416.59
7.4.260.0000.00716.60
7.4.250.0000.00716.59
7.4.240.0050.00316.45
7.4.230.0000.00716.48
7.4.220.0070.01016.46
7.4.210.0100.01016.70
7.4.200.0000.00716.45
7.4.160.0160.00016.48
7.4.150.0080.01217.40
7.4.140.0110.01117.86
7.4.130.0080.00916.55
7.4.120.0110.00916.58
7.4.110.0130.01016.64
7.4.100.0060.00916.38
7.4.90.0100.00716.34
7.4.80.0110.00619.39
7.4.70.0080.00816.34
7.4.60.0140.00716.48
7.4.50.0090.00616.42
7.4.40.0130.01016.55
7.4.30.0110.00716.50
7.4.10.0060.01214.74
7.4.00.0080.00814.80
7.3.330.0000.00713.16
7.3.320.0000.00513.11
7.3.310.0030.00316.09
7.3.300.0030.00316.25
7.3.290.0100.00916.29
7.3.280.0130.00516.23
7.3.270.0110.00617.40
7.3.260.0090.00916.26
7.3.250.0080.00916.34
7.3.240.0080.01016.35
7.3.230.0100.01316.39
7.3.210.0070.01016.27
7.3.200.0100.00719.39
7.3.190.0140.00616.45
7.3.180.0120.00916.29
7.3.170.0090.00916.30
7.3.160.0060.01016.38
7.3.130.0030.01514.72
7.3.120.0080.00914.74
7.3.110.0040.01114.74
7.3.100.0040.01314.65
7.3.90.0060.00814.71
7.3.80.0060.00714.50
7.3.70.0060.00714.70
7.3.60.0030.00914.69
7.3.50.0010.00814.63
7.3.40.0030.00814.76
7.3.30.0060.00614.83
7.3.20.0070.00616.61
7.3.10.0090.00616.49
7.3.00.0050.00716.54
7.2.330.0030.01316.29
7.2.320.0120.01216.41
7.2.310.0080.01116.52
7.2.300.0150.00616.44
7.2.290.0030.01316.59
7.2.260.0040.01514.76
7.2.250.0050.01314.79
7.2.240.0070.01014.92
7.2.230.0040.01014.67
7.2.220.0050.00814.78
7.2.210.0060.00814.85
7.2.200.0030.01114.83
7.2.190.0030.00714.83
7.2.180.0030.01014.85
7.2.170.0090.00314.79
7.2.160.0070.00714.63
7.2.150.0030.01216.77
7.2.140.0020.01116.62
7.2.130.0100.00516.72
7.2.120.0050.00716.82
7.2.110.0030.01216.59
7.2.100.0060.01216.70
7.2.90.0020.00916.75
7.2.80.0100.00316.79
7.2.70.0030.01016.61
7.2.60.0080.00516.61
7.2.50.0040.00916.57
7.2.40.0070.00816.81
7.2.30.0050.00816.66
7.2.20.0050.00716.74
7.2.10.0080.00716.69
7.2.00.0060.00617.55
7.1.330.0050.00915.67
7.1.320.0020.01015.52
7.1.310.0030.00815.47
7.1.300.0040.00915.56
7.1.290.0090.00515.63
7.1.280.0030.00915.35
7.1.270.0050.00715.59
7.1.260.0090.00315.57
7.1.250.0050.00815.50
7.1.240.0030.00615.38
7.1.230.0000.01415.66
7.1.220.0060.01215.50
7.1.210.0060.00615.59
7.1.200.0000.01015.68
7.1.190.0100.00615.61
7.1.180.0060.00615.66
7.1.170.0000.01015.63
7.1.160.0060.00915.35
7.1.150.0030.00615.67
7.1.140.0030.00615.49
7.1.130.0060.00615.59
7.1.120.0040.00815.74
7.1.110.0150.00015.49
7.1.100.0020.01116.71
7.1.90.0070.00715.78
7.1.80.0030.00715.72
7.1.70.0070.00816.18
7.1.60.0080.00817.65
7.1.50.0020.01016.22
7.1.40.0060.00315.25
7.1.30.0120.00315.53
7.1.20.0080.00615.57
7.1.10.0000.01215.38
7.1.00.0040.04118.88
7.0.330.0000.01115.20
7.0.320.0110.00415.44
7.0.310.0070.00715.21
7.0.300.0060.00615.20
7.0.290.0040.00415.27
7.0.280.0030.00615.25
7.0.270.0030.00915.11
7.0.260.0060.00314.97
7.0.250.0040.00815.21
7.0.240.0030.01015.29
7.0.230.0050.00515.05
7.0.220.0090.00615.47
7.0.210.0060.01015.05
7.0.200.0040.00815.89
7.0.190.0070.00415.24
7.0.180.0070.00315.18
7.0.170.0030.01015.39
7.0.160.0080.00615.41
7.0.150.0090.00315.41
7.0.140.0070.01015.21
7.0.130.0040.01115.37
7.0.120.0060.00615.02
7.0.110.0100.00315.32
7.0.100.0090.00415.09
7.0.90.0080.00815.03
7.0.80.0070.00715.24
7.0.70.0000.01515.21
7.0.60.0200.02817.72
7.0.50.0080.03617.95
7.0.40.0080.03216.74
7.0.30.0070.03516.72
7.0.20.0110.03216.80
7.0.10.0150.03216.68
7.0.00.0200.03016.76
5.6.400.0030.01014.29
5.6.390.0130.00314.30
5.6.380.0030.01014.40
5.6.370.0110.00414.19
5.6.360.0070.00714.05
5.6.350.0100.00714.07
5.6.340.0050.00514.28
5.6.330.0000.01114.09
5.6.320.0070.00413.93
5.6.310.0040.00814.11
5.6.300.0100.00313.80
5.6.290.0070.00714.01
5.6.280.0050.04117.53
5.6.270.0000.01314.09
5.6.260.0060.00914.23
5.6.250.0100.01014.40
5.6.240.0110.00713.84
5.6.230.0060.00614.20
5.6.220.0000.01413.97
5.6.210.0120.04217.43
5.6.200.0100.03517.62
5.6.190.0180.03717.49
5.6.180.0110.03517.70
5.6.170.0120.02917.51
5.6.160.0130.03317.79
5.6.150.0180.03017.51
5.6.140.0150.02817.54
5.6.130.0120.03917.75
5.6.120.0130.03017.59
5.6.110.0100.03917.52
5.6.100.0120.03417.70
5.6.90.0080.03617.53
5.6.80.0220.02517.29
5.6.70.0070.03917.25
5.6.60.0100.03317.13
5.6.50.0160.02917.36
5.6.40.0070.03917.06
5.6.30.0110.03317.32
5.6.20.0080.03217.18
5.6.10.0160.02617.18
5.6.00.0070.03417.22
5.5.380.0130.00713.95
5.5.370.0070.00714.03
5.5.360.0060.00914.10
5.5.350.0120.02217.32
5.5.340.0080.03717.46
5.5.330.0150.02817.46
5.5.320.0110.03217.45
5.5.310.0070.03417.31
5.5.300.0150.02917.41
5.5.290.0120.03517.27
5.5.280.0100.03017.56
5.5.270.0100.03717.37
5.5.260.0120.03517.27
5.5.250.0130.03017.36
5.5.240.0130.02616.99
5.5.230.0140.02917.04
5.5.220.0100.03017.08
5.5.210.0020.03817.21
5.5.200.0150.03717.14
5.5.190.0210.02317.16
5.5.180.0080.03717.00
5.5.170.0070.00713.94
5.5.160.0080.03417.03
5.5.150.0100.02917.23
5.5.140.0080.03017.24
5.5.130.0100.03017.08
5.5.120.0070.03217.15
5.5.110.0140.03417.03
5.5.100.0130.04517.20
5.5.90.0130.02516.92
5.5.80.0100.03216.83
5.5.70.0090.03416.88
5.5.60.0140.02716.90
5.5.50.0100.03317.21
5.5.40.0050.03816.95
5.5.30.0110.02816.94
5.5.20.0080.03316.80
5.5.10.0200.03016.77
5.5.00.0150.04116.92

preferences:
42.14 ms | 401 KiB | 5 Q