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){ echo "\n". strtolower($agenttotest) . " " . strtolower($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.0200.00316.75
8.3.50.0100.01017.43
8.3.40.0140.00018.71
8.3.30.0090.00918.58
8.3.20.0080.00018.69
8.3.10.0040.00420.48
8.3.00.0030.00719.25
8.2.180.0030.01416.50
8.2.170.0070.00722.96
8.2.160.0120.00318.83
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0030.00517.63
8.2.110.0030.00720.99
8.2.100.0040.00717.59
8.2.90.0030.00620.86
8.2.80.0050.00317.80
8.2.70.0030.00617.63
8.2.60.0000.01017.80
8.2.50.0000.00918.07
8.2.40.0060.00318.28
8.2.30.0080.00217.96
8.2.20.0000.00717.72
8.2.10.0000.00817.78
8.2.00.0100.00017.72
8.1.280.0110.00325.92
8.1.270.0050.00324.66
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0070.00422.47
8.1.230.0030.00921.03
8.1.220.0000.00817.74
8.1.210.0060.00318.91
8.1.200.0060.00317.35
8.1.190.0040.00417.50
8.1.180.0050.00318.10
8.1.170.0050.00318.77
8.1.160.0040.00418.96
8.1.150.0000.00718.57
8.1.140.0000.00817.50
8.1.130.0000.00717.89
8.1.120.0040.00317.45
8.1.110.0000.00717.46
8.1.100.0000.00717.47
8.1.90.0100.00017.39
8.1.80.0000.00717.46
8.1.70.0040.00417.45
8.1.60.0040.00417.51
8.1.50.0050.00217.52
8.1.40.0040.00417.44
8.1.30.0040.00417.69
8.1.20.0000.00817.60
8.1.10.0030.00517.43
8.1.00.0000.00817.42
8.0.300.0040.00419.98
8.0.290.0000.00716.63
8.0.280.0040.00418.37
8.0.270.0000.00717.32
8.0.260.0000.00716.78
8.0.250.0050.00216.92
8.0.240.0070.00016.96
8.0.230.0040.00417.00
8.0.220.0000.00716.89
8.0.210.0030.00316.82
8.0.200.0000.00816.98
8.0.190.0070.00016.90
8.0.180.0050.00216.81
8.0.170.0000.00816.91
8.0.160.0030.00316.83
8.0.150.0050.00316.84
8.0.140.0040.00416.76
8.0.130.0060.00013.41
8.0.120.0000.00716.89
8.0.110.0070.00016.78
8.0.100.0000.00716.73
8.0.90.0000.00816.97
8.0.80.0140.00316.86
8.0.70.0030.00516.87
8.0.60.0040.00416.91
8.0.50.0000.00716.97
8.0.30.0100.01217.29
8.0.20.0110.00917.01
8.0.10.0040.00416.90
8.0.00.0070.01216.75
7.4.330.0040.00013.03
7.4.320.0000.00616.61
7.4.300.0000.00616.54
7.4.290.0040.00416.61
7.4.280.0040.00416.67
7.4.270.0000.00716.55
7.4.260.0030.00313.41
7.4.250.0060.00316.52
7.4.240.0000.00716.57
7.4.230.0070.00016.60
7.4.220.0030.01616.56
7.4.210.0040.01016.55
7.4.200.0030.00316.43
7.4.190.0000.00716.43
7.4.160.0120.00316.48
7.4.150.0070.01016.58
7.4.140.0110.00816.50
7.4.130.0080.00916.60
7.4.120.0070.01016.38
7.4.110.0030.01416.57
7.4.100.0090.00916.64
7.4.90.0120.00616.66
7.4.80.0140.00719.39
7.4.70.0080.01416.41
7.4.60.0080.01116.42
7.4.50.0000.00716.43
7.4.40.0060.00616.55
7.4.30.0060.01116.60
7.4.00.0070.01214.98
7.3.330.0000.00713.16
7.3.320.0030.00313.12
7.3.310.0070.00016.33
7.3.300.0000.00716.20
7.3.290.0110.00816.27
7.3.280.0090.00716.29
7.3.270.0240.00016.50
7.3.260.0180.00016.43
7.3.250.0100.01116.36
7.3.240.0100.00616.45
7.3.230.0090.00816.24
7.3.210.0070.01016.42
7.3.200.0060.01216.28
7.3.190.0080.01216.54
7.3.180.0030.01316.57
7.3.170.0090.00616.45
7.3.160.0100.00716.23
7.3.120.0070.00714.79
7.3.110.0000.01914.72
7.3.100.0110.00414.79
7.3.90.0100.00714.63
7.3.80.0120.00014.59
7.3.70.0060.00914.70
7.3.60.0090.00614.93
7.3.50.0070.00714.86
7.3.40.0100.01014.82
7.3.30.0100.01014.68
7.3.20.0030.00716.39
7.3.10.0120.00016.75
7.3.00.0080.00816.70
7.2.330.0110.00816.53
7.2.320.0090.00916.43
7.2.310.0080.01616.38
7.2.300.0120.00616.44
7.2.290.0130.00716.46
7.2.250.0070.01015.20
7.2.240.0030.01414.73
7.2.230.0030.01314.97
7.2.220.0000.01914.89
7.2.210.0040.01514.99
7.2.200.0030.01014.91
7.2.190.0040.00814.73
7.2.180.0080.00814.77
7.2.170.0070.01115.05
7.2.00.0090.00619.20
7.1.330.0060.00915.56
7.1.320.0000.00915.67
7.1.310.0110.00415.44
7.1.300.0060.01015.68
7.1.290.0100.00715.77
7.1.280.0090.00615.71
7.1.270.0100.00615.69
7.1.260.0120.00415.44
7.1.100.0000.01318.09
7.1.70.0030.00717.13
7.1.60.0120.01219.40
7.1.50.0030.01617.01
7.1.00.0130.06722.51
7.0.200.0290.00014.61
7.0.140.0030.06721.95
7.0.120.0000.07722.16
7.0.60.0000.05320.08
7.0.50.0000.04717.87
7.0.40.0070.06019.98
7.0.30.0370.07720.02
7.0.20.0230.04320.02
7.0.10.0070.07320.00
7.0.00.0030.05020.16
5.6.280.0000.07720.88
5.6.210.0100.07020.56
5.6.200.0030.07018.17
5.6.190.0100.08020.41
5.6.180.0270.03320.43
5.6.170.0170.04020.61
5.6.160.0070.06720.37
5.6.150.0100.07718.09
5.6.140.0030.04018.16
5.6.130.0370.03018.16
5.6.120.0070.08321.01
5.6.110.0030.08721.14
5.6.100.0070.06020.98
5.6.90.0070.06321.08
5.6.80.0100.04020.28
5.5.350.0070.08020.46
5.5.340.0030.04717.98
5.5.330.0030.04320.40
5.5.320.0170.04320.29
5.5.310.0330.08020.30
5.5.300.0070.05317.94
5.5.290.0030.09317.95
5.5.280.0030.05320.98
5.5.270.0170.07720.96
5.5.260.0030.06320.89
5.5.250.0000.04720.68
5.5.240.0300.06720.07
5.4.450.0070.08019.12
5.4.440.0170.05019.33
5.4.430.0070.04019.44
5.4.420.0070.06319.47
5.4.410.0070.08019.11
5.4.400.0100.07318.80
5.4.390.0130.07319.18
5.4.380.0100.04719.18
5.4.370.0130.06719.16
5.4.360.0100.05319.07
5.4.350.0100.07319.12
5.4.340.0100.05019.08
5.4.320.0070.04018.92
5.4.310.0130.07019.18
5.4.300.0030.08019.15
5.4.290.0100.06319.17
5.4.280.0030.04019.08
5.4.270.0200.03019.11
5.4.260.0070.04019.09
5.4.250.0130.03318.78
5.4.240.0100.04018.78
5.4.230.0130.07019.08
5.4.220.0070.04019.09
5.4.210.0070.04019.11
5.4.200.0100.07319.07
5.4.190.0070.08019.16
5.4.180.0070.07318.80
5.4.170.0070.05019.13
5.4.160.0000.05719.16
5.4.150.0070.06319.09
5.4.140.0030.04716.25
5.4.130.0130.06016.47
5.4.120.0130.03716.31
5.4.110.0100.06716.24
5.4.100.0070.06316.31
5.4.90.0070.04316.26
5.4.80.0130.06716.39
5.4.70.0030.05316.59
5.4.60.0100.05716.24
5.4.50.0130.03016.24
5.4.40.0030.07716.39
5.4.30.0070.06016.59
5.4.20.0130.03716.31
5.4.10.0030.03716.34
5.4.00.0000.05715.74
5.3.290.0130.06714.54
5.3.280.0030.04314.49
5.3.270.0130.07014.54
5.3.260.0030.06714.57
5.3.250.0070.07314.57
5.3.240.0100.07314.55
5.3.230.0100.07314.41
5.3.220.0030.04014.54
5.3.210.0070.07314.50
5.3.200.0170.07014.48
5.3.190.0070.04014.54
5.3.180.0070.06014.50
5.3.170.0130.04014.35
5.3.160.0100.07314.51
5.3.150.0070.05014.57
5.3.140.0000.04014.50
5.3.130.0070.07714.56
5.3.120.0030.08714.48
5.3.110.0070.04014.52
5.3.100.0070.04013.98
5.3.90.0030.07314.11
5.3.80.0030.06013.80
5.3.70.0100.07313.97
5.3.60.0130.06014.02
5.3.50.0070.07313.88
5.3.40.0000.04713.76
5.3.30.0030.05313.86
5.3.20.0070.06713.51
5.3.10.0130.06313.75
5.3.00.0130.07013.57
5.2.170.0070.04011.09
5.2.160.0030.04011.23
5.2.150.0000.07011.23
5.2.140.0030.03711.16
5.2.130.0070.04711.04
5.2.120.0000.03711.05
5.2.110.0030.04311.02
5.2.100.0070.06311.04
5.2.90.0070.05011.06
5.2.80.0070.06011.03
5.2.70.0030.03011.08
5.2.60.0000.04010.98
5.2.50.0130.05310.92
5.2.40.0000.04710.93
5.2.30.0100.04711.05
5.2.20.0070.02710.92
5.2.10.0070.05310.91
5.2.00.0030.04310.71
5.1.60.0030.05310.07
5.1.50.0000.0579.95
5.1.40.0070.0539.95
5.1.30.0070.03310.32
5.1.20.0000.04310.35
5.1.10.0030.05710.14
5.1.00.0070.03310.13
5.0.50.0070.0408.53
5.0.40.0070.0408.31
5.0.30.0030.0678.23
5.0.20.0000.0408.33
5.0.10.0030.0438.12
5.0.00.0030.0308.14
4.4.90.0000.0307.97
4.4.80.0070.0207.97
4.4.70.0000.0177.97
4.4.60.0000.0377.97
4.4.50.0000.0407.97
4.4.40.0030.0537.97
4.4.30.0000.0337.97
4.4.20.0030.0207.97
4.4.10.0030.0337.97
4.4.00.0030.0577.97
4.3.110.0000.0377.97
4.3.100.0000.0337.97
4.3.90.0070.0177.97
4.3.80.0030.0507.97
4.3.70.0030.0177.97
4.3.60.0000.0277.97
4.3.50.0030.0377.97
4.3.40.0030.0377.97
4.3.30.0000.0277.97
4.3.20.0000.0277.97
4.3.10.0030.0337.97
4.3.00.0100.0277.97

preferences:
39.54 ms | 401 KiB | 5 Q