3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = 'Test humble request we are not spammers'; $strings = [ 'humble request we are not spammers' => '"Humble request we are not spammers." Yes you are spammers! We don\'t outsource.' ]; foreach ($strings as $search => $respond) { if (\stripos($body, $search) !== false) { if (!\headers_sent()) { \header("Content-Type: text/plain;charset=UTF-8"); } die($respond); } }

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.0080.01118.43
8.3.50.0170.00521.09
8.3.40.0070.00718.86
8.3.30.0070.00719.14
8.3.20.0030.00620.30
8.3.10.0080.00023.53
8.3.00.0050.00319.07
8.2.180.0130.00618.54
8.2.170.0150.00022.96
8.2.160.0030.01020.35
8.2.150.0030.00624.18
8.2.140.0110.00424.66
8.2.130.0000.00726.16
8.2.120.0060.00921.12
8.2.110.0080.00420.43
8.2.100.0070.00417.78
8.2.90.0050.00319.14
8.2.80.0040.00717.97
8.2.70.0060.00317.75
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0000.00917.97
8.2.30.0030.00517.93
8.2.20.0040.00417.87
8.2.10.0040.00417.99
8.2.00.0000.00717.99
8.1.280.0190.00325.92
8.1.270.0050.00320.32
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.73
8.1.230.0040.00823.84
8.1.220.0050.00317.75
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00317.00
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0000.00722.00
8.1.150.0070.00018.88
8.1.140.0070.00017.42
8.1.130.0030.00317.73
8.1.120.0000.00717.54
8.1.110.0080.00017.34
8.1.100.0050.00217.43
8.1.90.0030.00317.50
8.1.80.0090.00017.49
8.1.70.0000.00717.47
8.1.60.0000.00817.50
8.1.50.0050.00317.57
8.1.40.0040.00417.53
8.1.30.0040.00417.52
8.1.20.0000.00717.55
8.1.10.0030.00517.44
8.1.00.0000.00817.33
8.0.300.0000.00718.77
8.0.290.0050.00316.88
8.0.280.0030.00318.36
8.0.270.0000.00817.16
8.0.260.0000.00817.24
8.0.250.0030.00316.91
8.0.240.0040.00417.07
8.0.230.0030.00316.97
8.0.220.0000.00716.99
8.0.210.0030.00316.82
8.0.200.0000.00616.95
8.0.190.0090.00016.92
8.0.180.0040.00416.92
8.0.170.0040.00416.95
8.0.160.0040.00416.91
8.0.150.0050.00216.74
8.0.140.0030.00716.87
8.0.130.0050.00013.33
8.0.120.0000.00816.84
8.0.110.0040.00416.96
8.0.100.0050.00316.85
8.0.90.0040.00416.91
8.0.80.0120.00917.01
8.0.70.0040.00316.99
8.0.60.0000.00716.92
8.0.50.0000.00716.94
8.0.30.0120.00717.18
8.0.20.0100.01017.40
8.0.10.0050.00316.94
8.0.00.0120.00916.76
7.4.330.0000.00515.10
7.4.320.0000.00716.51
7.4.300.0000.00616.54
7.4.290.0030.00316.62
7.4.280.0040.00416.39
7.4.270.0030.00316.64
7.4.260.0030.00416.49
7.4.250.0030.00316.47
7.4.240.0030.00416.57
7.4.230.0000.00716.34
7.4.220.0070.01416.54
7.4.210.0070.00716.62
7.4.200.0030.00316.40
7.4.160.0090.00616.36
7.4.150.0100.01017.40
7.4.140.0050.01317.86
7.4.130.0110.01116.41
7.4.120.0090.00916.62
7.4.110.0070.01416.37
7.4.100.0120.01216.36
7.4.90.0180.00016.41
7.4.80.0100.01019.39
7.4.70.0110.00716.61
7.4.60.0130.00316.62
7.4.50.0030.00316.34
7.4.40.0130.00316.50
7.4.30.0090.00916.68
7.4.00.0030.01314.73
7.3.330.0020.00213.21
7.3.320.0060.00013.08
7.3.310.0040.00416.18
7.3.300.0000.00716.19
7.3.290.0060.01016.33
7.3.280.0100.00816.30
7.3.270.0130.00517.40
7.3.260.0080.00816.37
7.3.250.0130.00416.39
7.3.240.0100.00716.20
7.3.230.0080.00816.51
7.3.210.0090.00616.49
7.3.200.0070.01719.39
7.3.190.0090.00616.50
7.3.180.0070.01016.29
7.3.170.0060.01316.27
7.3.160.0090.00616.64
7.2.330.0100.00916.72
7.2.320.0090.00616.72
7.2.310.0080.00816.34
7.2.300.0040.01216.65
7.2.290.0130.01016.71
7.2.110.0340.01016.56
7.2.60.0090.00617.03
7.2.00.0030.00619.34
7.1.200.0040.01115.44
7.1.100.0000.01118.08
7.1.70.0040.00417.30
7.1.60.0090.01519.59
7.1.50.0080.00616.73
7.1.00.0000.07722.29
7.0.200.0110.00516.72
7.0.60.0000.07319.88
7.0.50.0070.05017.81
7.0.40.0070.04720.26
7.0.30.0270.06320.17
7.0.20.0200.05720.02
7.0.10.0100.08320.13
7.0.00.0070.06020.18
5.6.280.0030.07320.78
5.6.210.0030.08320.53
5.6.200.0030.07718.16
5.6.190.0170.03320.35
5.6.180.0530.07020.49
5.6.170.0230.03720.52
5.6.160.0170.07320.48
5.6.150.0070.05718.16
5.6.140.0030.07718.08
5.6.130.0030.04718.17
5.6.120.0130.07721.03
5.6.110.0070.07020.99
5.6.100.0070.09021.00
5.6.90.0130.04720.95
5.6.80.0130.07320.35
5.5.350.0070.04020.38
5.5.340.0070.07317.93
5.5.330.0070.08320.21
5.5.320.0230.04320.32
5.5.310.0270.06320.29
5.5.300.0000.04717.88
5.5.290.0030.05718.02
5.5.280.0130.07320.90
5.5.270.0100.07020.89
5.5.260.0170.07320.83
5.5.250.0070.03720.50
5.5.240.0030.07720.11
5.4.450.0500.05719.45
5.4.440.0770.05019.02
5.4.430.0030.07319.43
5.4.420.0200.04719.43
5.4.410.0030.06019.39
5.4.400.0130.05019.01
5.4.390.0070.05718.95
5.4.380.0070.06018.91
5.4.370.0170.04719.04
5.4.360.0100.07019.07
5.4.350.0170.05719.00
5.4.340.0030.06018.98
5.4.320.0000.06319.20
5.4.310.0170.06719.11
5.4.300.0170.05019.07
5.4.290.0100.05319.12
5.4.280.0200.05018.95
5.4.270.0300.03719.13
5.4.260.0070.05719.12
5.4.250.0100.05719.13
5.4.240.0130.05018.95
5.4.230.0170.04719.12
5.4.220.0130.05019.11
5.4.210.0130.05319.08
5.4.200.0070.05316.80
5.4.190.0170.04719.11
5.4.180.0130.05018.99
5.4.170.0200.05019.08
5.4.160.0130.05718.88
5.4.150.0070.05319.13
5.4.140.0200.04316.57
5.4.130.0100.04716.21
5.4.120.0030.05316.32
5.4.110.0070.05016.21
5.4.100.0170.04316.41
5.4.90.0170.04316.52
5.4.80.0230.03316.11
5.4.70.0100.05016.53
5.4.60.0100.04716.47
5.4.50.0230.03316.34
5.4.40.0000.05716.20
5.4.30.0070.05016.34
5.4.20.0070.05316.38
5.4.10.0130.04316.50
5.4.00.0070.05015.91
5.3.290.0030.06014.51
5.3.280.0100.05014.61
5.3.270.0070.05314.39
5.3.260.0130.05014.48
5.3.250.0130.04714.52
5.3.240.0000.06314.45
5.3.230.0070.06014.63
5.3.220.0130.04714.43
5.3.210.0100.05314.48
5.3.200.0100.05314.48
5.3.190.0100.05014.58
5.3.180.0130.05014.48
5.3.170.0130.04314.41
5.3.160.0070.05314.48
5.3.150.0070.05314.41
5.3.140.0130.04714.59
5.3.130.0100.05314.33
5.3.120.0100.05014.46
5.3.110.0030.06014.44
5.3.100.0070.05314.05
5.3.90.0130.04314.00
5.3.80.0130.04313.95
5.3.70.0200.04013.86
5.3.60.0070.05013.88
5.3.50.0030.05313.97
5.3.40.0070.05013.97
5.3.30.0130.04313.93
5.3.20.0170.04013.60
5.3.10.0070.05013.54
5.3.00.0030.05713.49
5.2.170.0070.05711.26
5.2.160.0000.04711.15
5.2.150.0030.05010.98
5.2.140.0100.05011.13
5.2.130.0070.04011.02
5.2.120.0130.03710.94
5.2.110.0100.04011.01
5.2.100.0030.04311.15
5.2.90.0100.03710.99
5.2.80.0170.03310.95
5.2.70.0100.04010.93
5.2.60.0000.04710.95
5.2.50.0030.04711.07
5.2.40.0070.04310.91
5.2.30.0100.03710.91
5.2.20.0070.04010.90
5.2.10.0100.03710.94
5.2.00.0100.03710.65
5.1.60.0000.03710.04
5.1.50.0070.0339.99
5.1.40.0070.0339.82
5.1.30.0100.03310.36
5.1.20.0030.04010.43
5.1.10.0000.0409.95
5.1.00.0070.03310.06
5.0.50.0030.0308.55
5.0.40.0100.0208.35
5.0.30.0000.0478.15
5.0.20.0000.0308.04
5.0.10.0070.0238.30
5.0.00.0100.0378.08
4.4.90.0000.0235.75
4.4.80.0000.0235.85
4.4.70.0000.0235.80
4.4.60.0030.0205.86
4.4.50.0070.0175.86
4.4.40.0030.0335.75
4.4.30.0030.0205.89
4.4.20.0070.0175.84
4.4.10.0000.0235.83
4.4.00.0030.0335.80
4.3.110.0030.0205.76
4.3.100.0070.0175.72
4.3.90.0000.0275.68
4.3.80.0000.0375.78
4.3.70.0130.0105.82
4.3.60.0030.0205.81
4.3.50.0030.0205.79
4.3.40.0030.0335.71
4.3.30.0000.0234.41
4.3.20.0000.0234.50
4.3.10.0030.0234.45
4.3.00.0030.0236.75

preferences:
60.84 ms | 401 KiB | 5 Q