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 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.40.0070.00718.67
8.3.30.0120.00318.71
8.3.20.0040.00418.51
8.3.10.0000.00821.09
8.3.00.0030.00523.48
8.2.170.0070.01422.96
8.2.160.0100.00320.35
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00419.41
8.2.110.0050.00520.46
8.2.100.0080.00317.78
8.2.90.0030.00519.22
8.2.80.0000.01117.97
8.2.70.0040.00817.25
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0050.00321.22
8.2.20.0020.00517.57
8.2.10.0000.00817.70
8.2.00.0040.00417.71
8.1.270.0050.00223.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.01022.23
8.1.230.0040.00720.91
8.1.220.0050.00318.77
8.1.210.0060.00318.97
8.1.200.0060.00317.00
8.1.190.0000.00717.41
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0000.00818.91
8.1.150.0040.00418.72
8.1.140.0050.00317.39
8.1.130.0030.00317.76
8.1.120.0070.00017.40
8.1.110.0070.00017.52
8.1.100.0050.00317.44
8.1.90.0080.00017.36
8.1.80.0020.00517.39
8.1.70.0070.00017.45
8.1.60.0030.00617.67
8.1.50.0030.00617.39
8.1.40.0040.00417.42
8.1.30.0050.00317.67
8.1.20.0080.00017.57
8.1.10.0000.00817.42
8.1.00.0000.01117.38
8.0.300.0060.00419.83
8.0.290.0040.00417.05
8.0.280.0000.00718.53
8.0.270.0050.00317.15
8.0.260.0030.00316.90
8.0.250.0000.00716.86
8.0.240.0060.00616.97
8.0.230.0030.00516.97
8.0.220.0030.00316.78
8.0.210.0040.00416.92
8.0.200.0030.00316.98
8.0.190.0000.00717.04
8.0.180.0040.00416.95
8.0.170.0080.00016.87
8.0.160.0070.00016.96
8.0.150.0000.00716.75
8.0.140.0000.00716.79
8.0.130.0000.00613.30
8.0.120.0000.00816.96
8.0.110.0040.00416.88
8.0.100.0000.00717.02
8.0.90.0050.00316.96
8.0.80.0120.00316.87
8.0.70.0000.00716.88
8.0.60.0000.00716.93
8.0.50.0070.00016.75
8.0.30.0090.01017.14
8.0.20.0080.01017.40
8.0.10.0050.00217.00
8.0.00.0050.01216.86
7.4.330.0050.00014.66
7.4.320.0030.00316.54
7.4.300.0030.00316.52
7.4.290.0030.00316.66
7.4.280.0030.00316.55
7.4.270.0030.00516.61
7.4.260.0000.00513.41
7.4.250.0030.00416.58
7.4.240.0000.00816.62
7.4.230.0030.00316.41
7.4.220.0150.00916.57
7.4.210.0080.00716.50
7.4.200.0040.00316.72
7.4.190.0000.00716.66
7.4.160.0100.00716.64
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0040.01216.61
7.4.120.0090.00916.44
7.4.110.0100.01016.48
7.4.100.0090.00916.53
7.4.90.0080.01216.43
7.4.80.0000.01619.39
7.4.70.0110.00716.35
7.4.60.0120.00316.44
7.4.50.0000.00816.32
7.4.40.0070.01122.77
7.4.30.0110.01116.52
7.4.00.0120.00314.94
7.3.330.0000.00513.23
7.3.320.0060.00013.18
7.3.310.0040.00416.34
7.3.300.0000.00716.38
7.3.290.0000.01316.37
7.3.280.0100.00516.36
7.3.270.0060.01217.40
7.3.260.0150.00618.24
7.3.250.0070.01016.50
7.3.240.0150.00316.30
7.3.230.0130.00716.43
7.3.210.0090.00916.65
7.3.200.0180.00319.39
7.3.190.0090.00816.34
7.3.180.0030.01216.73
7.3.170.0090.00616.59
7.3.160.0120.00316.47
7.3.120.0120.00314.62
7.2.330.0090.00816.57
7.2.320.0130.01016.40
7.2.310.0090.00916.80
7.2.300.0090.00916.48
7.2.290.0060.01016.73
7.2.00.0040.00819.39
7.1.100.0060.00318.26
7.1.70.0040.00417.30
7.1.60.0060.01919.40
7.1.50.0180.00916.73
7.1.00.0030.05322.37
7.0.200.0050.00216.79
7.0.140.0000.07722.12
7.0.110.0200.07319.87
7.0.100.0170.04019.88
7.0.90.0100.07020.08
7.0.80.0070.04720.07
7.0.70.0130.06019.93
7.0.60.0130.06720.02
7.0.50.0200.06720.00
7.0.40.0070.05019.65
7.0.30.0170.07719.73
7.0.20.0170.06319.73
7.0.10.0070.07019.78
7.0.00.0130.07719.84
5.6.280.0000.07321.00
5.6.260.0100.07020.69
5.6.250.0130.07320.69
5.6.240.0030.08320.66
5.6.230.0030.05320.52
5.6.220.0000.04020.84
5.6.210.0100.03020.63
5.6.200.0000.08320.61
5.6.190.0070.07320.69
5.6.180.0130.07320.64
5.6.170.0130.08020.56
5.6.160.0100.06020.61
5.6.150.0070.08320.65
5.6.140.0100.07320.70
5.6.130.0070.08020.62
5.6.120.0070.07320.46
5.6.110.0100.07020.55
5.6.100.0130.05320.62
5.6.90.0130.07720.45
5.6.80.0130.03720.07
5.6.70.0030.04720.00
5.6.60.0130.07019.92
5.6.50.0100.07020.02
5.6.40.0130.06320.06
5.6.30.0130.06720.05
5.6.20.0070.08019.93
5.6.10.0070.06719.98
5.6.00.0070.07020.05
5.5.380.0130.07317.44
5.5.370.0030.03717.54
5.5.360.0070.03317.57
5.5.350.0000.04017.65
5.5.340.0070.04318.03
5.5.330.0000.07718.17
5.5.320.0100.04317.77
5.5.310.0170.07717.99
5.5.300.0030.08018.16
5.5.290.0100.07317.82
5.5.280.0000.04718.09
5.5.270.0030.05718.02
5.5.260.0130.07018.11
5.5.250.0100.08017.98
5.5.240.0100.07017.25
5.5.230.0100.07317.37
5.5.220.0030.07317.23
5.5.210.0170.06017.50
5.5.200.0100.07317.20
5.5.190.0100.07017.12
5.5.180.0130.07717.24
5.5.160.0070.07717.62
5.5.150.0100.06717.37
5.5.140.0030.08017.20
5.5.130.0030.07717.11
5.5.120.0030.08017.51
5.5.110.0070.07717.21
5.5.100.0000.04017.12
5.5.90.0000.04017.41
5.5.80.0030.05017.38
5.5.70.0030.06717.22
5.5.60.0070.05717.00
5.5.50.0030.04017.49
5.5.40.0030.04316.97
5.5.30.0070.06017.33
5.5.20.0130.07017.33
5.5.10.0100.07017.10
5.5.00.0070.03017.22
5.4.450.0100.06319.35
5.4.440.0130.07719.42
5.4.430.0030.05319.31
5.4.420.0030.07019.33
5.4.410.0100.04319.18
5.4.400.0070.07019.00
5.4.390.0070.07719.25
5.4.380.0100.07019.12
5.4.370.0100.04019.02
5.4.360.0070.07718.98
5.4.350.0100.06019.10
5.4.340.0130.06019.07
5.4.320.0070.07319.25
5.4.310.0070.07319.18
5.4.300.0000.06719.02
5.4.290.0070.07019.17
5.4.280.0070.03318.95
5.4.270.0100.05018.95
5.4.260.0030.03718.95
5.4.250.0030.03318.97
5.4.240.0070.04319.24
5.4.230.0030.05319.16
5.4.220.0070.08019.02
5.4.210.0070.06718.94
5.4.200.0100.07019.07
5.4.190.0000.08319.24
5.4.180.0070.05719.16
5.4.170.0100.07019.07
5.4.160.0030.06719.01
5.4.150.0030.05719.14
5.4.140.0100.03016.26
5.4.130.0030.03016.19
5.4.120.0030.04016.45
5.4.110.0000.04016.48
5.4.100.0000.04016.49
5.4.90.0070.07016.51
5.4.80.0070.07016.39
5.4.70.0070.05316.39
5.4.60.0170.06016.16
5.4.50.0130.06316.26
5.4.40.0070.04016.43
5.4.30.0100.06716.27
5.4.20.0100.07316.49
5.4.10.0100.07016.20
5.4.00.0130.06715.89
5.3.290.0070.07314.45
5.3.280.0030.03714.45
5.3.270.0100.07014.62
5.3.260.0030.06714.50
5.3.250.0100.06714.53
5.3.240.0070.03314.60
5.3.230.0030.03714.42
5.3.220.0000.03714.50
5.3.210.0000.08314.35
5.3.200.0130.06714.56
5.3.190.0000.08314.56
5.3.180.0070.06714.41
5.3.170.0030.07314.44
5.3.160.0070.07314.46
5.3.150.0030.08314.66
5.3.140.0030.06714.34
5.3.130.0030.08714.39
5.3.120.0100.07314.39
5.3.110.0000.08714.64
5.3.100.0000.03713.96
5.3.90.0030.03313.92
5.3.80.0000.07314.09
5.3.70.0030.03313.95
5.3.60.0100.07013.92
5.3.50.0100.07013.86
5.3.40.0070.07313.88
5.3.30.0000.06013.75
5.3.20.0030.08013.71
5.3.10.0000.04013.67
5.3.00.0130.06713.70
5.2.170.0030.06311.90
5.2.160.0100.05311.90
5.2.150.0130.05311.90
5.2.140.0030.03011.90
5.2.130.0030.06011.90
5.2.120.0100.05711.90
5.2.110.0070.04311.90
5.2.100.0100.04011.90
5.2.90.0070.05311.90
5.2.80.0000.06311.90
5.2.70.0100.06011.90
5.2.60.0030.04711.90
5.2.50.0030.06311.90
5.2.40.0030.03311.90
5.2.30.0070.04711.90
5.2.20.0030.03011.90
5.2.10.0030.03011.90
5.2.00.0030.03011.90
5.1.60.0070.03311.90
5.1.50.0030.03011.90
5.1.40.0070.05311.90
5.1.30.0100.05011.90
5.1.20.0070.05311.90
5.1.10.0070.04711.90
5.1.00.0070.05311.90
5.0.50.0070.04011.90
5.0.40.0000.02711.90
5.0.30.0070.02711.90
5.0.20.0000.05011.90
5.0.10.0070.04311.90
5.0.00.0030.06311.90
4.4.90.0000.03011.90
4.4.80.0070.03011.90
4.4.70.0000.02311.90
4.4.60.0000.01311.90
4.4.50.0030.02311.90
4.4.40.0000.02711.90
4.4.30.0030.03011.90
4.4.20.0030.03311.90
4.4.10.0070.03011.90
4.4.00.0000.05711.90
4.3.110.0030.01311.90
4.3.100.0070.03011.90
4.3.90.0100.02011.90
4.3.80.0030.05011.90
4.3.70.0100.03011.90
4.3.60.0000.02011.90
4.3.50.0030.02711.90
4.3.40.0030.05011.90
4.3.30.0070.03011.90
4.3.20.0000.02311.90
4.3.10.0070.03011.90
4.3.00.0030.02711.90

preferences:
43.56 ms | 400 KiB | 5 Q