3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "a%' OR 'a'='a "; $sql = "SELECT * FROM caffaine WHERE itemname LIKE '%" . $search . "%' OR itemdesc LIKE '%" . $search . "%' OR categ LIKE '%" . $search . "%'"; 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.4.20.0030.00919.54
8.4.10.0100.00017.52
8.3.140.0150.00016.42
8.3.130.0040.00416.60
8.3.120.0170.00020.71
8.3.110.0040.00420.94
8.3.100.0070.01416.49
8.3.90.0040.00426.77
8.3.80.0100.00018.43
8.3.70.0110.00418.31
8.3.60.0180.00318.30
8.3.50.0100.01017.38
8.3.40.0000.01418.71
8.3.30.0090.00618.64
8.3.20.0070.00020.14
8.3.10.0040.00421.83
8.3.00.0080.00023.49
8.2.260.0120.00618.62
8.2.250.0030.00616.50
8.2.240.0110.00417.13
8.2.230.0090.00622.58
8.2.220.0080.00024.06
8.2.210.0070.00026.77
8.2.200.0090.00016.75
8.2.190.0030.01016.58
8.2.180.0070.00716.63
8.2.170.0080.00622.96
8.2.160.0130.00022.08
8.2.150.0040.00425.66
8.2.140.0050.00524.66
8.2.130.0000.00726.16
8.2.120.0040.00419.77
8.2.110.0100.00020.80
8.2.100.0000.01219.34
8.2.90.0040.00718.03
8.2.80.0040.00418.05
8.2.70.0040.00417.93
8.2.60.0030.00618.09
8.2.50.0060.00318.07
8.2.40.0000.00819.73
8.2.30.0080.00018.05
8.2.20.0040.00418.03
8.2.10.0070.00017.98
8.2.00.0000.00718.01
8.1.310.0000.01416.52
8.1.300.0040.00418.27
8.1.290.0000.00830.84
8.1.280.0000.01425.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.27
8.1.230.0040.00722.66
8.1.220.0050.00317.77
8.1.210.0050.00318.79
8.1.200.0110.00017.22
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0030.00318.81
8.1.150.0070.00020.18
8.1.140.0000.00717.68
8.1.130.0000.00719.01
8.1.120.0040.00417.42
8.1.110.0040.00417.46
8.1.100.0040.00417.40
8.1.90.0070.00017.54
8.1.80.0000.00717.48
8.1.70.0000.00717.38
8.1.60.0040.00417.57
8.1.50.0000.00717.40
8.1.40.0030.00617.39
8.1.30.0000.00817.57
8.1.20.0040.00417.57
8.1.10.0040.00417.46
8.1.00.0030.00617.34
8.0.300.0070.00019.77
8.0.290.0000.00816.63
8.0.280.0030.00318.45
8.0.270.0030.00317.21
8.0.260.0030.00318.50
8.0.250.0000.00817.02
8.0.240.0050.00216.80
8.0.230.0070.00016.95
8.0.220.0030.00316.88
8.0.210.0000.00716.91
8.0.200.0040.00416.86
8.0.190.0030.00716.98
8.0.180.0070.00316.83
8.0.170.0050.00316.83
8.0.160.0000.00716.82
8.0.150.0000.00816.79
8.0.140.0000.00816.85
8.0.130.0030.00313.27
8.0.120.0040.00416.86
8.0.110.0040.00416.76
8.0.100.0000.00716.84
8.0.90.0040.00416.76
8.0.80.0100.00716.82
8.0.70.0050.00216.68
8.0.60.0000.00716.75
8.0.50.0000.00716.76
8.0.30.0110.00717.17
8.0.20.0100.00717.40
8.0.10.0050.00316.82
8.0.00.0100.00716.77
7.4.330.0000.00515.55
7.4.320.0000.00716.36
7.4.300.0000.00616.48
7.4.290.0040.00416.57
7.4.280.0030.00416.47
7.4.270.0040.00416.50
7.4.260.0000.00716.52
7.4.250.0000.00716.47
7.4.240.0070.00016.47
7.4.230.0000.00716.56
7.4.220.0070.01116.49
7.4.210.0030.01216.45
7.4.200.0030.00316.33
7.4.160.0100.00816.44
7.4.150.0120.00617.40
7.4.140.0140.00617.86
7.4.130.0130.00316.30
7.4.120.0090.00916.51
7.4.110.0060.00916.36
7.4.100.0110.01216.38
7.4.90.0070.01416.31
7.4.80.0120.00919.39
7.4.70.0090.00916.42
7.4.60.0090.00616.53
7.4.50.0060.01016.30
7.4.40.0070.01016.35
7.4.30.0130.00316.53
7.4.00.0090.00614.80
7.3.330.0000.00513.02
7.3.320.0000.00513.18
7.3.310.0000.00816.07
7.3.300.0000.00616.13
7.3.290.0050.01016.24
7.3.280.0090.00816.25
7.3.270.0030.01617.40
7.3.260.0080.01016.46
7.3.250.0100.00716.44
7.3.240.0070.01216.31
7.3.230.0070.01416.21
7.3.210.0130.00316.53
7.3.200.0060.01016.43
7.3.190.0040.01616.37
7.3.180.0090.00616.44
7.3.170.0090.00616.24
7.3.160.0080.00716.30
7.3.00.0060.00616.72
7.2.330.0130.00316.65
7.2.320.0150.00316.63
7.2.310.0120.00616.74
7.2.300.0100.00716.74
7.2.290.0040.01316.68
7.2.130.0000.01016.84
7.2.120.0000.01116.84
7.2.110.0060.00616.86
7.2.100.0110.00416.77
7.2.90.0070.00716.84
7.2.80.0030.00616.78
7.2.70.0100.00316.82
7.2.60.0060.00917.02
7.2.50.0060.00816.69
7.2.40.0040.01117.04
7.2.30.0070.00716.90
7.2.20.0040.00416.85
7.2.10.0030.01017.00
7.2.00.0060.00617.08
7.1.250.0090.00615.46
7.1.240.0060.00315.62
7.1.230.0030.01015.63
7.1.220.0000.01315.72
7.1.210.0040.01015.91
7.1.200.0040.01015.66
7.1.190.0070.00315.58
7.1.180.0030.00915.71
7.1.170.0070.00315.46
7.1.160.0040.01115.87
7.1.150.0070.00315.73
7.1.140.0030.01015.90
7.1.130.0000.01015.81
7.1.120.0030.00615.84
7.1.110.0090.00015.88
7.1.100.0100.00715.87
7.1.90.0130.00615.83
7.1.80.2660.00915.99
7.1.70.0120.00415.23
7.1.60.0190.01124.62
7.1.50.0170.00924.30
7.1.40.0200.00824.08
7.1.30.0120.01024.17
7.1.20.0160.00824.22
7.1.10.0100.00915.19
7.1.00.1370.00815.31
7.0.330.0000.01215.14
7.0.320.0080.00415.16
7.0.310.0030.01015.08
7.0.300.0070.00715.28
7.0.290.0030.00915.32
7.0.280.0000.01315.43
7.0.270.0060.00615.20
7.0.260.0130.00314.97
7.0.250.0080.00415.07
7.0.240.0270.01015.50
7.0.230.2670.00515.31
7.0.220.0160.00315.51
7.0.210.0140.00514.89
7.0.200.0160.00815.14
7.0.190.2470.00815.25
7.0.180.0050.00914.85
7.0.170.0050.01214.77
7.0.160.0100.00714.88
7.0.150.0110.00314.87
7.0.140.3870.01114.94
7.0.130.0170.00915.10
7.0.120.0090.00915.08
7.0.110.0580.00814.84
7.0.100.0190.01114.74
7.0.90.4050.00914.91
7.0.80.0690.00614.71
7.0.70.0480.00414.89
7.0.60.0100.00514.68
7.0.50.4290.01015.16
7.0.40.3550.01213.98
7.0.30.3510.00813.95
7.0.20.3240.00813.92
7.0.10.2900.01014.03
7.0.00.3480.01013.75
5.6.380.0090.00314.23

preferences:
34.16 ms | 403 KiB | 5 Q