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.60.0000.01516.50
8.3.50.0190.00316.40
8.3.40.0040.01118.67
8.3.30.0070.00718.69
8.3.20.0080.00018.78
8.3.10.0080.00020.52
8.3.00.0070.01419.01
8.2.180.0140.00716.50
8.2.170.0090.00622.96
8.2.160.0030.01021.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0130.00326.16
8.2.120.0070.00419.18
8.2.110.0040.00820.97
8.2.100.0060.00617.72
8.2.90.0040.00419.22
8.2.80.0000.00818.03
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0030.00518.16
8.2.30.0040.00417.98
8.2.20.0050.00217.59
8.2.10.0000.00717.57
8.2.00.0040.00417.67
8.1.280.0000.01625.92
8.1.270.0080.00024.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.61
8.1.230.0040.00820.84
8.1.220.0040.00418.77
8.1.210.0000.00818.94
8.1.200.0000.01017.35
8.1.190.0070.00017.64
8.1.180.0050.00318.10
8.1.170.0080.00018.96
8.1.160.0020.00518.76
8.1.150.0000.00718.66
8.1.140.0080.00317.46
8.1.130.0030.00317.84
8.1.120.0000.00817.36
8.1.110.0080.00017.46
8.1.100.0000.00717.40
8.1.90.0000.00717.36
8.1.80.0050.00317.41
8.1.70.0000.00717.45
8.1.60.0050.00317.59
8.1.50.0080.00017.48
8.1.40.0000.00717.54
8.1.30.0040.00417.61
8.1.20.0040.00417.54
8.1.10.0000.00717.41
8.1.00.0000.01117.37
8.0.300.0060.00319.85
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0030.00316.81
8.0.260.0050.00316.70
8.0.250.0040.00416.95
8.0.240.0040.00416.94
8.0.230.0000.00716.96
8.0.220.0000.00716.88
8.0.210.0070.00016.90
8.0.200.0000.00716.95
8.0.190.0040.00416.94
8.0.180.0040.00416.96
8.0.170.0000.00916.93
8.0.160.0030.00416.79
8.0.150.0030.00616.89
8.0.140.0000.00816.87
8.0.130.0030.00313.36
8.0.120.0030.00516.85
8.0.110.0000.00816.89
8.0.100.0030.00517.00
8.0.90.0000.00716.80
8.0.80.0030.01716.87
8.0.70.0080.00016.94
8.0.60.0070.00016.76
8.0.50.0040.00416.96
8.0.30.0080.01117.09
8.0.20.0080.01117.17
8.0.10.0030.00516.90
8.0.00.0120.01016.81
7.4.330.0050.00013.01
7.4.320.0060.00016.60
7.4.300.0030.00316.55
7.4.290.0000.00716.62
7.4.280.0110.00016.61
7.4.270.0070.00016.66
7.4.260.0030.00313.29
7.4.250.0040.00416.60
7.4.240.0000.00716.52
7.4.230.0030.00316.40
7.4.220.0200.00016.49
7.4.210.0060.01016.57
7.4.200.0030.00516.63
7.4.190.0000.00716.73
7.4.160.0090.00616.77
7.4.150.0150.00916.65
7.4.140.0100.00716.53
7.4.130.0060.01316.49
7.4.120.0100.00716.44
7.4.110.0060.01016.61
7.4.100.0120.00616.36
7.4.90.0030.01316.49
7.4.80.0130.00719.39
7.4.70.0060.01116.65
7.4.60.0100.01316.48
7.4.50.0030.00716.43
7.4.40.0100.00716.39
7.4.30.0060.01116.40
7.4.00.0100.00714.86
7.3.330.0030.00313.03
7.3.320.0000.00613.25
7.3.310.0030.00316.40
7.3.300.0070.00016.36
7.3.290.0030.01216.31
7.3.280.0100.00816.36
7.3.270.0140.00316.48
7.3.260.0030.01616.30
7.3.250.0100.00816.34
7.3.240.0100.01316.41
7.3.230.0140.00316.44
7.3.210.0030.01516.57
7.3.200.0100.00616.66
7.3.190.0060.01216.40
7.3.180.0080.00816.55
7.3.170.0070.01016.44
7.3.160.0100.00616.66
7.3.120.0070.00714.90
7.2.330.0130.01016.56
7.2.320.0000.01616.33
7.2.310.0150.01016.69
7.2.300.0110.00616.34
7.2.290.0040.01416.50
7.2.00.0000.01519.32
7.1.100.0080.00017.66
7.1.70.0030.00717.09
7.1.60.0070.01719.40
7.1.50.0000.02116.93
7.1.00.0030.07722.40
7.0.200.0000.01016.63
7.0.140.0030.07722.00
7.0.120.0170.05721.96
7.0.60.0070.08319.91
7.0.50.0100.08017.77
7.0.40.0030.06320.38
7.0.30.0500.07320.24
7.0.20.0230.08020.00
7.0.10.0270.07720.12
7.0.00.0030.04720.11
5.6.280.0070.07020.91
5.6.210.0100.07320.70
5.6.200.0070.08718.17
5.6.190.0000.05320.67
5.6.180.0200.05020.48
5.6.170.0170.06020.41
5.6.160.0100.06320.33
5.6.150.0130.07318.07
5.6.140.0100.04718.21
5.6.130.0070.07718.21
5.6.120.0000.04720.98
5.6.110.0130.07720.96
5.6.100.0100.07320.99
5.6.90.0100.07320.97
5.6.80.0070.08320.45
5.6.70.4400.03720.43
5.5.350.0230.06320.32
5.5.340.0000.04017.96
5.5.330.0200.02720.47
5.5.320.0070.04720.07
5.5.310.0230.08020.21
5.5.300.0030.08317.98
5.5.290.0100.05317.91
5.5.280.0070.09020.84
5.5.270.0130.06720.89
5.5.260.0100.07020.86
5.5.250.0000.04320.58
5.5.240.0130.07020.25
5.4.450.0070.07719.12
5.4.440.0030.06019.48
5.4.430.0100.07719.11
5.4.420.0130.07719.46
5.4.410.0070.04019.35
5.4.400.0070.04018.80
5.4.390.0030.04719.17
5.4.380.0130.03319.11
5.4.370.0200.07018.92
5.4.360.0000.05319.14
5.4.350.0030.05718.83
5.4.340.0100.07319.18
5.4.320.0070.06719.16
5.4.310.0200.06319.12
5.4.300.0100.04318.79
5.4.290.0070.07719.07
5.4.280.0030.08319.18
5.4.270.0070.04319.15
5.4.260.0130.03019.11
5.4.250.0100.05319.09
5.4.240.0030.05319.17
5.4.230.0100.05718.91
5.4.220.0270.05719.14
5.4.210.0100.07318.91
5.4.200.0100.04319.13
5.4.190.0100.04319.10
5.4.180.0100.07718.80
5.4.170.0030.08318.78
5.4.160.0130.06719.16
5.4.150.0100.05019.12
5.4.140.0100.06716.34
5.4.130.0070.06316.30
5.4.120.0100.07316.43
5.4.110.0130.06016.20
5.4.100.0000.04316.23
5.4.90.0070.03316.14
5.4.80.0170.06716.25
5.4.70.0130.06716.38
5.4.60.0070.07716.21
5.4.50.0030.03716.57
5.4.40.0030.07716.21
5.4.30.0100.06716.17
5.4.20.0100.07716.27
5.4.10.0230.05716.21
5.4.00.0000.04315.70
5.3.290.0070.04014.59
5.3.280.0070.07314.52
5.3.270.0030.08014.54
5.3.260.0000.08314.54
5.3.250.0070.07714.56
5.3.240.0100.07014.52
5.3.230.0070.06714.54
5.3.220.0130.04014.66
5.3.210.0130.07314.49
5.3.200.0030.07714.65
5.3.190.0100.03314.52
5.3.180.0030.07714.48
5.3.170.0070.05314.54
5.3.160.0100.04314.50
5.3.150.0000.05014.46
5.3.140.0000.04014.49
5.3.130.0000.05014.38
5.3.120.0000.04714.36
5.3.110.0130.06714.47
5.3.100.0000.07713.91
5.3.90.0070.07713.98
5.3.80.0100.04713.96
5.3.70.0070.05013.81
5.3.60.0070.07313.84
5.3.50.0030.06313.73
5.3.40.0030.05313.88
5.3.30.0030.03713.89
5.3.20.0000.05313.51
5.3.10.0130.06313.49
5.3.00.0070.05313.73
5.2.170.0070.05311.15
5.2.160.0000.06311.11
5.2.150.0000.04711.07
5.2.140.0000.06011.23
5.2.130.0100.04311.09
5.2.120.0030.06010.99
5.2.110.0030.06711.09
5.2.100.0070.06011.11
5.2.90.0030.04711.00
5.2.80.0030.03310.98
5.2.70.0130.04711.08
5.2.60.0030.06011.13
5.2.50.0100.06010.93
5.2.40.0030.04010.88
5.2.30.0030.04710.87
5.2.20.0100.03310.93
5.2.10.0130.05310.86
5.2.00.0070.05310.81
5.1.60.0100.0539.97
5.1.50.0000.0639.98
5.1.40.0030.0479.97
5.1.30.0070.04710.32
5.1.20.0000.06310.35
5.1.10.0070.05310.11
5.1.00.0070.05310.03
5.0.50.0030.0479.19
5.0.40.0000.0479.16
5.0.30.0070.0439.16
5.0.20.0030.0439.16
5.0.10.0070.0409.16
5.0.00.0030.0579.16
4.4.90.0030.0379.19
4.4.80.0000.0279.19
4.4.70.0000.0239.19
4.4.60.0000.0209.19
4.4.50.0000.0279.19
4.4.40.0000.0609.19
4.4.30.0000.0379.19
4.4.20.0000.0339.19
4.4.10.0130.0279.19
4.4.00.0100.0509.16
4.3.110.0030.0339.16
4.3.100.0070.0309.16
4.3.90.0030.0179.16
4.3.80.0000.0579.16
4.3.70.0030.0339.16
4.3.60.0000.0379.16
4.3.50.0000.0379.16
4.3.40.0000.0579.16
4.3.30.0000.0339.16
4.3.20.0000.0409.16
4.3.10.0070.0239.16
4.3.00.0030.0339.16

preferences:
47.96 ms | 400 KiB | 5 Q