3v4l.org

run code in 300+ PHP versions simultaneously
<?php $agenttotest = "Googlebot/2.1 (http://www.googlebot.com/bot.html)"; $agents_to_ignore = array("googlebot", "AdsBot", "pingdom", "bot"); foreach ($agents_to_ignore as $agent) if (isset($agenttotest) && strpos(strtolower($agenttotest), strtolower($agent) !== false)) echo "block"; var_dump ( strpos(strtolower($agenttotest), strtolower("bot")) );

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.70.0090.00916.61
8.3.60.0120.00318.18
8.3.50.0130.00321.02
8.3.40.0040.01418.81
8.3.30.0100.00318.59
8.3.20.0050.00318.63
8.3.10.0060.00319.33
8.3.00.0080.00023.54
8.2.180.0150.00016.38
8.2.170.0040.01122.96
8.2.160.0030.01022.13
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00020.94
8.2.110.0030.00619.30
8.2.100.0110.00017.78
8.2.90.0030.00619.17
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0030.00618.05
8.2.50.0000.00918.07
8.2.40.0000.00818.28
8.2.30.0060.00319.51
8.2.20.0070.00017.56
8.2.10.0040.00417.60
8.2.00.0000.00717.54
8.1.280.0110.00725.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0070.00320.77
8.1.230.0120.00021.03
8.1.220.0000.00818.77
8.1.210.0080.00418.83
8.1.200.0030.00617.35
8.1.190.0050.00317.53
8.1.180.0050.00318.10
8.1.170.0070.00018.53
8.1.160.0070.00018.89
8.1.150.0040.00418.59
8.1.140.0020.00517.46
8.1.130.0000.00717.84
8.1.120.0040.00417.51
8.1.110.0040.00417.46
8.1.100.0040.00417.46
8.1.90.0020.00517.44
8.1.80.0000.00817.36
8.1.70.0000.00617.33
8.1.60.0040.00417.62
8.1.50.0040.00417.49
8.1.40.0000.00917.50
8.1.30.0080.00017.62
8.1.20.0030.00517.65
8.1.10.0000.00817.50
8.1.00.0040.00417.46
8.0.300.0040.00419.89
8.0.290.0030.00317.05
8.0.280.0030.00318.44
8.0.270.0000.00716.69
8.0.260.0090.00016.78
8.0.250.0040.00416.97
8.0.240.0060.00316.86
8.0.230.0000.00816.94
8.0.220.0040.00416.80
8.0.210.0040.00416.89
8.0.200.0030.00316.96
8.0.190.0050.00216.95
8.0.180.0050.00216.92
8.0.170.0000.00916.92
8.0.160.0070.00016.98
8.0.150.0030.00316.85
8.0.140.0000.00716.86
8.0.130.0050.00013.32
8.0.120.0000.00716.89
8.0.110.0020.00516.96
8.0.100.0040.00416.88
8.0.90.0080.00016.75
8.0.80.0000.01516.84
8.0.70.0040.00416.86
8.0.60.0020.00516.91
8.0.50.0000.00716.77
8.0.30.0090.01317.06
8.0.20.0090.01317.40
8.0.10.0040.00416.99
8.0.00.0100.00916.78
7.4.330.0060.00014.78
7.4.320.0040.00416.63
7.4.300.0000.00716.51
7.4.290.0030.00316.61
7.4.280.0030.00316.40
7.4.270.0050.00216.50
7.4.260.0000.00513.36
7.4.250.0030.00516.39
7.4.240.0070.00016.50
7.4.230.0000.00716.61
7.4.220.0130.00316.65
7.4.210.0060.00916.63
7.4.200.0040.00416.72
7.4.190.0000.00816.45
7.4.160.0080.01216.46
7.4.150.0070.01817.40
7.4.140.0100.00717.86
7.4.130.0120.01016.49
7.4.120.0110.00616.55
7.4.110.0040.01216.46
7.4.100.0090.00916.51
7.4.90.0100.01016.54
7.4.80.0120.00919.39
7.4.70.0110.01116.56
7.4.60.0090.00916.58
7.4.50.0000.00916.51
7.4.40.0070.01022.77
7.4.30.0000.01816.44
7.4.00.0060.00914.75
7.3.330.0000.00513.22
7.3.320.0070.00713.23
7.3.310.0040.00416.34
7.3.300.0070.00016.32
7.3.290.0080.01116.34
7.3.280.0080.00816.37
7.3.270.0030.01417.40
7.3.260.0200.00418.24
7.3.250.0110.00716.26
7.3.240.0060.01016.35
7.3.230.0070.01016.47
7.3.210.0090.01216.48
7.3.200.0110.00719.39
7.3.190.0140.00316.43
7.3.180.0130.00716.55
7.3.170.0120.00916.42
7.3.160.0030.01316.32
7.3.120.0110.00414.84
7.2.330.0100.00716.71
7.2.320.0120.00916.73
7.2.310.0100.01316.49
7.2.300.0100.00616.32
7.2.290.0060.01016.64
7.1.200.0060.00615.91
7.1.100.0030.00817.88
7.1.70.0000.00716.95
7.1.60.0070.01019.40
7.1.50.0060.01916.99
7.1.00.0000.06722.27
7.0.200.0000.00716.79
7.0.140.0030.07322.09
7.0.60.0030.04319.90
7.0.50.0070.04717.79
7.0.40.0130.08320.05
7.0.30.0470.08020.18
7.0.20.0270.08020.33
7.0.10.0130.07719.99
7.0.00.0070.04320.23
5.6.280.0070.06720.86
5.6.210.0030.06020.54
5.6.200.0070.08318.12
5.6.190.0070.06720.41
5.6.180.0200.09020.62
5.6.170.0330.07320.46
5.6.160.0070.08020.50
5.6.150.0070.07018.16
5.6.140.0070.05018.18
5.6.130.0030.04018.09
5.6.120.0070.08320.98
5.6.110.0170.06020.98
5.6.100.0070.05021.06
5.6.90.0030.04321.00
5.6.80.0130.07020.50
5.6.70.4600.04020.37
5.5.350.0100.07320.33
5.5.340.0070.05018.02
5.5.330.0070.05020.15
5.5.320.0300.05020.21
5.5.310.0200.05720.29
5.5.300.0070.04318.01
5.5.290.0070.08018.01
5.5.280.0030.09020.96
5.5.270.0200.06720.81
5.5.260.0070.04020.88
5.5.250.0100.05720.65
5.5.240.0230.04320.22
5.4.450.2100.04319.41
5.4.440.2030.04019.52
5.4.430.1470.03719.40
5.4.420.0070.08019.45
5.4.410.0000.08019.25
5.4.400.0070.05718.81
5.4.390.1500.04719.24
5.4.380.1730.04319.08
5.4.370.2030.04719.21
5.4.360.2070.04319.13
5.4.350.2000.05019.08
5.4.340.2000.04718.88
5.4.320.1970.04319.13
5.4.310.1930.03719.10
5.4.300.2000.04319.21
5.4.290.1930.04019.14
5.4.280.2000.04719.21
5.4.270.2000.04319.13
5.4.260.1830.04319.08
5.4.250.2370.03319.12
5.4.240.2070.03719.12
5.4.230.2330.04019.20
5.4.220.2100.04018.76
5.4.210.2070.04018.92
5.4.200.1970.03319.23
5.4.190.1830.03719.07
5.4.180.1870.03719.23
5.4.170.2000.04019.05
5.4.160.1930.04019.25
5.4.150.1900.03718.88
5.4.140.1870.03716.26
5.4.130.2030.03716.26
5.4.120.2030.03716.28
5.4.110.2100.04016.45
5.4.100.1870.03316.34
5.4.90.1830.03716.38
5.4.80.2000.04016.39
5.4.70.1870.03316.41
5.4.60.2230.04316.36
5.4.50.1830.03716.40
5.4.40.1970.03316.45
5.4.30.1970.03316.36
5.4.20.2000.03316.44
5.4.10.2030.03316.30
5.4.00.2000.03715.65
5.3.290.2000.04314.50
5.3.280.0630.04314.64
5.3.270.0000.04014.55
5.3.260.0000.04014.62
5.3.250.1100.04014.54
5.3.240.1830.04714.59
5.3.230.1570.03314.54
5.3.220.1600.04014.47
5.3.210.2000.04014.42
5.3.200.2030.04714.50
5.3.190.1470.03714.52
5.3.180.1630.04014.54
5.3.170.2030.04014.50
5.3.160.2130.04714.51
5.3.150.1770.03714.41
5.3.140.1800.03714.41
5.3.130.1630.04014.39
5.3.120.1600.04014.56
5.3.110.2000.04314.39
5.3.100.1730.04714.08
5.3.90.1770.04014.11
5.3.80.1670.04013.96
5.3.70.1630.03713.85
5.3.60.1730.03713.91
5.3.50.1500.04313.74
5.3.40.1970.04013.77
5.3.30.1800.03313.75
5.3.20.0830.04313.79
5.3.10.0070.03013.49
5.3.00.0000.04713.69
5.2.170.0770.03311.19
5.2.160.1500.03011.19
5.2.150.1500.03311.16
5.2.140.1800.03711.22
5.2.130.1830.03010.96
5.2.120.1770.03011.26
5.2.110.1730.03710.94
5.2.100.1530.03011.15
5.2.90.1630.03310.96
5.2.80.1500.03010.93
5.2.70.1730.03311.18
5.2.60.1670.02311.06
5.2.50.1730.02310.88
5.2.40.1230.02711.01
5.2.30.1330.03010.81
5.2.20.1270.02310.79
5.2.10.1300.03010.97
5.2.00.1330.01710.61
5.1.60.1500.0339.86
5.1.50.1530.02710.15
5.1.40.1300.0239.95
5.1.30.1230.02710.35
5.1.20.1230.02310.42
5.1.10.1270.02310.18
5.1.00.1230.02310.14
5.0.50.0630.0208.63
5.0.40.0830.0308.51
5.0.30.0600.0308.20
5.0.20.0600.0208.42
5.0.10.0700.0138.26
5.0.00.0770.0278.28
4.4.90.0630.0177.57
4.4.80.0600.0177.57
4.4.70.0630.0137.57
4.4.60.0730.0237.57
4.4.50.0600.0177.57
4.4.40.0730.0307.57
4.4.30.0670.0277.57
4.4.20.0670.0137.57
4.4.10.0730.0137.57
4.4.00.0800.0337.57
4.3.110.0830.0277.57
4.3.100.0600.0177.57
4.3.90.0630.0137.57
4.3.80.0570.0277.57
4.3.70.0630.0137.57
4.3.60.0800.0237.57
4.3.50.0630.0137.57
4.3.40.0600.0237.57
4.3.30.0400.0277.57
4.3.20.0330.0137.57
4.3.10.0300.0207.57
4.3.00.0270.0177.57

preferences:
38.65 ms | 401 KiB | 5 Q