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.0110.00416.38
8.3.50.0120.00822.05
8.3.40.0040.01118.45
8.3.30.0070.00718.92
8.3.20.0080.00020.37
8.3.10.0050.00323.61
8.3.00.0000.00919.00
8.2.180.0170.00018.04
8.2.170.0110.00422.96
8.2.160.0120.00322.25
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.24
8.2.110.0040.00422.15
8.2.100.0070.00417.84
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0080.00318.28
8.2.30.0000.00717.99
8.2.20.0040.00417.69
8.2.10.0000.00718.09
8.2.00.0000.00717.57
8.1.280.0180.00325.92
8.1.270.0090.00022.06
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.81
8.1.230.0060.00619.01
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0030.00618.56
8.1.160.0000.00722.03
8.1.150.0030.00518.55
8.1.140.0080.00017.46
8.1.130.0030.00317.72
8.1.120.0000.00717.49
8.1.110.0080.00017.32
8.1.100.0000.00717.38
8.1.90.0040.00417.38
8.1.80.0040.00417.53
8.1.70.0080.00017.36
8.1.60.0040.00417.61
8.1.50.0040.00417.60
8.1.40.0030.00617.52
8.1.30.0040.00417.50
8.1.20.0040.00417.63
8.1.10.0030.00617.54
8.1.00.0070.00017.50
8.0.300.0000.00920.64
8.0.290.0000.00717.04
8.0.280.0030.00318.32
8.0.270.0050.00217.13
8.0.260.0060.00017.32
8.0.250.0000.00717.00
8.0.240.0060.00316.87
8.0.230.0000.00716.86
8.0.220.0000.00716.94
8.0.210.0050.00316.93
8.0.200.0030.00316.98
8.0.190.0000.00717.04
8.0.180.0030.00616.83
8.0.170.0090.00016.92
8.0.160.0000.00716.88
8.0.150.0030.00516.88
8.0.140.0000.00716.90
8.0.130.0060.00313.36
8.0.120.0030.00516.94
8.0.110.0040.00416.82
8.0.100.0040.00416.76
8.0.90.0040.00416.97
8.0.80.0030.01216.93
8.0.70.0060.00316.75
8.0.60.0060.00316.85
8.0.50.0000.00716.76
8.0.30.0110.00916.89
8.0.20.0130.00917.40
8.0.10.0000.00716.88
8.0.00.0100.00816.83
7.4.330.0030.00315.05
7.4.320.0000.00616.57
7.4.300.0000.00716.41
7.4.290.0040.00416.63
7.4.280.0000.00816.50
7.4.270.0050.00216.54
7.4.260.0040.00416.62
7.4.250.0080.00016.47
7.4.240.0000.00716.53
7.4.230.0040.00416.68
7.4.220.0120.00616.56
7.4.210.0090.00716.53
7.4.200.0040.00416.52
7.4.190.0030.00316.66
7.4.160.0100.01316.54
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0040.01216.44
7.4.120.0100.01116.58
7.4.110.0090.00916.55
7.4.100.0090.01016.56
7.4.90.0070.01016.56
7.4.80.0190.00319.39
7.4.70.0090.00916.34
7.4.60.0060.01316.69
7.4.50.0040.00416.46
7.4.40.0100.00716.38
7.4.30.0100.00716.71
7.4.10.0060.00916.45
7.4.00.0070.01015.70
7.3.330.0000.00713.19
7.3.320.0050.00013.09
7.3.310.0040.00416.30
7.3.300.0040.00216.26
7.3.290.0090.00516.38
7.3.280.0100.00616.41
7.3.270.0060.01117.40
7.3.260.0060.01216.64
7.3.250.0120.00716.55
7.3.240.0070.01416.30
7.3.230.0100.00616.43
7.3.210.0120.00616.53
7.3.200.0060.01016.67
7.3.190.0000.02216.39
7.3.180.0070.01016.51
7.3.170.0160.00716.36
7.3.160.0070.01016.67
7.3.130.0160.00016.48
7.3.120.0080.00615.71
7.3.110.0060.00916.20
7.3.100.0090.00616.31
7.3.90.0000.01016.41
7.3.80.0090.00616.31
7.3.70.0030.01416.33
7.3.60.0030.01416.40
7.3.50.0130.00316.45
7.3.40.0110.00416.31
7.3.30.0120.00316.41
7.3.20.0040.01118.17
7.3.10.0030.01018.17
7.3.00.0080.00418.11
7.2.330.0140.00416.43
7.2.320.0070.01016.82
7.2.310.0060.01116.77
7.2.300.0120.00616.63
7.2.290.0110.00716.61
7.2.260.0040.01116.72
7.2.250.0100.01016.45
7.2.240.0070.00716.82
7.2.230.0130.00316.77
7.2.220.0060.01016.61
7.2.210.0060.01016.43
7.2.200.0090.00316.58
7.2.190.0070.00316.62
7.2.180.0030.01016.61
7.2.170.0040.01216.61
7.2.160.0150.00316.43
7.2.150.0090.00318.48
7.2.140.0110.00818.17
7.2.130.0040.01118.36
7.2.120.0100.00718.34
7.2.110.0030.01318.34
7.2.100.0040.01518.37
7.2.90.0000.01318.36
7.2.80.0070.01018.46
7.2.70.0100.00618.43
7.2.60.0030.00918.51
7.2.50.0100.00618.29
7.2.40.0100.01018.58
7.2.30.0090.00318.60
7.2.20.0150.00018.40
7.2.10.0060.01018.11
7.2.00.0050.01018.90
7.1.330.0030.01017.23
7.1.320.0090.00617.20
7.1.310.0090.00617.29
7.1.300.0000.01517.45
7.1.290.0030.01017.37
7.1.280.0060.01017.30
7.1.270.0000.01417.38
7.1.260.0030.00617.25
7.1.250.0060.00917.26
7.1.240.0090.00317.23
7.1.230.0070.00717.27
7.1.220.0040.01217.29
7.1.210.0070.00717.27
7.1.200.0040.01517.33
7.1.190.0070.00317.31
7.1.180.0080.00417.16
7.1.170.0060.00617.41
7.1.160.0060.00317.17
7.1.150.0060.00617.26
7.1.140.0060.00317.11
7.1.130.0100.00317.26
7.1.120.0070.01117.48
7.1.110.0030.01017.29
7.1.100.0090.00916.95
7.1.90.0060.00617.21
7.1.80.0070.01017.33
7.1.70.0010.01017.07
7.1.60.0050.01318.32
7.1.50.0070.01017.03
7.1.40.0110.00417.32
7.1.30.0070.00717.48
7.1.20.0000.01717.26
7.1.10.0030.01017.28
7.1.00.0090.03819.80
7.0.330.0000.01016.87
7.0.320.0070.01116.93
7.0.310.0040.01416.92
7.0.300.0060.00916.97
7.0.290.0090.00616.73
7.0.280.0030.01016.95
7.0.270.0100.00716.95
7.0.260.0040.01116.97
7.0.250.0000.00917.13
7.0.240.0070.00716.99
7.0.230.0040.00717.03
7.0.220.0100.00316.86
7.0.210.0070.01016.88
7.0.200.0030.00816.72
7.0.190.0000.01517.03
7.0.180.0070.00317.02
7.0.170.0030.01017.00
7.0.160.0040.00716.93
7.0.150.0030.00616.88
7.0.140.0030.04119.55
7.0.130.0110.00417.09
7.0.120.0070.01117.11
7.0.110.0030.00617.03
7.0.100.0080.00416.90
7.0.90.0090.00017.04
7.0.80.0060.00316.79
7.0.70.0030.02219.22
7.0.60.0000.02619.18
7.0.50.0030.02219.48
7.0.40.0020.02017.30
7.0.30.0080.01517.38
7.0.20.0050.02317.48
7.0.10.0020.02217.43
7.0.00.0020.03517.35
5.6.400.0000.01015.77
5.6.390.0060.00915.91
5.6.380.0120.00815.59
5.6.370.0110.00815.89
5.6.360.0100.00315.64
5.6.350.0070.01016.16
5.6.340.0030.01316.16
5.6.330.0070.01115.92
5.6.320.0070.00715.78
5.6.310.0090.00616.00
5.6.300.0060.00915.88
5.6.290.0130.00315.71
5.6.280.0030.04218.37
5.6.270.0000.01416.01
5.6.260.0060.00616.02
5.6.250.0030.01015.84
5.6.240.0090.00616.04
5.6.230.0120.00615.80
5.6.220.0070.01818.24
5.6.210.0030.02218.16
5.6.200.0020.02218.54
5.6.190.0040.02018.33
5.6.180.0070.01618.41
5.6.170.0030.02518.43
5.6.160.0030.03618.32
5.6.150.0060.03518.39
5.6.140.0060.02418.38
5.6.130.0010.05118.36
5.6.120.0080.04318.41
5.6.110.0030.04618.35
5.6.100.0070.04718.37
5.6.90.0040.03318.26
5.6.80.0060.02717.91
5.6.70.0050.04517.88
5.6.60.0110.03617.98
5.6.50.0020.04418.12
5.6.40.0020.04918.04
5.6.30.0050.03918.07
5.6.20.0010.02718.06
5.6.10.0030.04718.04
5.6.00.0050.02618.05
5.5.380.0030.01215.85
5.5.370.0040.00715.78
5.5.360.0040.02217.95
5.5.350.0030.02218.06
5.5.340.0000.02318.30
5.5.330.0020.01918.23
5.5.320.0020.02218.29
5.5.310.0030.02718.30
5.5.300.0050.02518.22
5.5.290.0050.04818.15
5.5.280.0090.04418.19
5.5.270.0050.04518.35
5.5.260.0050.04518.23
5.5.250.0070.04518.17
5.5.240.0070.04217.88
5.5.230.0050.03517.87
5.5.220.0030.03717.96
5.5.210.0000.03417.87
5.5.200.0050.04217.93
5.5.190.0050.03317.92
5.5.180.0060.02617.83
5.5.170.0040.01115.85
5.5.160.0020.02617.86
5.5.150.0040.04517.85
5.5.140.0020.04617.70
5.5.130.0000.04617.96
5.5.120.0090.03718.01
5.5.110.0100.04017.96
5.5.100.0050.03517.81
5.5.90.0070.03317.85
5.5.80.0090.01817.88
5.5.70.0020.04017.90
5.5.60.0050.03517.71
5.5.50.0050.03217.79
5.5.40.0080.03717.79
5.5.30.0010.02917.85
5.5.20.0040.04417.80
5.5.10.0080.04017.77
5.5.00.0030.04117.78
5.4.450.0040.04215.89
5.4.440.0050.04316.01
5.4.430.0040.04615.76
5.4.420.0100.03315.91
5.4.410.0050.03815.80
5.4.400.0080.03515.79
5.4.390.0030.04315.63
5.4.380.0080.03515.81
5.4.370.0100.03715.63
5.4.360.0020.04215.67
5.4.350.0060.02815.52
5.4.340.0060.03715.61
5.4.330.0000.01212.63
5.4.320.0060.02015.71
5.4.310.0020.03415.59
5.4.300.0080.04015.68
5.4.290.0050.03515.63
5.4.280.0050.04015.79
5.4.270.0070.03215.80
5.4.260.0060.03915.65
5.4.250.0030.03815.73
5.4.240.0050.04015.64
5.4.230.0070.03515.61
5.4.220.0110.03615.67
5.4.210.0080.03015.72
5.4.200.0030.03915.66
5.4.190.0030.02715.65
5.4.180.0080.04015.76
5.4.170.0030.04115.49
5.4.160.0030.03615.70
5.4.150.0010.03615.71
5.4.140.0080.03814.28
5.4.130.0020.04314.33
5.4.120.0070.03614.34
5.4.110.0050.03814.38
5.4.100.0030.04214.45
5.4.90.0050.03714.35
5.4.80.0020.02914.46
5.4.70.0060.03614.39
5.4.60.0050.03714.32
5.4.50.0070.03514.36
5.4.40.0020.03914.36
5.4.30.0050.03614.44
5.4.20.0050.03614.37
5.4.10.0080.02814.36
5.4.00.0050.03314.13
5.3.290.0020.04613.89
5.3.280.0060.03813.65
5.3.270.0020.04213.80
5.3.260.0020.03913.70
5.3.250.0060.03013.83
5.3.240.0020.04213.69
5.3.230.0050.04213.85
5.3.220.0030.04013.74
5.3.210.0050.04213.68
5.3.200.0000.04813.65
5.3.190.0040.02513.76
5.3.180.0030.03013.74
5.3.170.0020.02813.74
5.3.160.0050.03813.78
5.3.150.0050.03713.69
5.3.140.0020.04113.72
5.3.130.0050.03713.79
5.3.120.0050.03013.72
5.3.110.0050.03713.71
5.3.100.0010.04113.44
5.3.90.0060.04013.48
5.3.80.0050.03813.28
5.3.70.0020.03513.38
5.3.60.0030.03913.60
5.3.50.0040.03313.40
5.3.40.0110.03613.33
5.3.30.0100.03513.55
5.3.20.0040.03413.26
5.3.10.0050.03913.09
5.3.00.0090.03713.00
5.2.170.0070.05011.11
5.2.160.0030.05711.11
5.2.150.0000.06311.16
5.2.140.0000.05011.00
5.2.130.0000.06311.17
5.2.120.0030.06711.09
5.2.110.0000.04310.89
5.2.100.0030.06011.14
5.2.90.0000.03711.17
5.2.80.0030.06011.12
5.2.70.0070.04310.95
5.2.60.0070.05710.84
5.2.50.0000.03310.84
5.2.40.0000.03010.83
5.2.30.0030.04010.84
5.2.20.0070.04310.84
5.2.10.0030.03310.88
5.2.00.0000.03010.75
5.1.60.0070.02710.48
5.1.50.0070.03310.48
5.1.40.0000.05710.48
5.1.30.0000.03010.48
5.1.20.0030.05310.48
5.1.10.0000.02310.48
5.1.00.0070.02010.48
5.0.50.0030.02710.48
5.0.40.0030.01310.48
5.0.30.0000.04010.48
5.0.20.0030.04010.48
5.0.10.0000.03710.48
5.0.00.0000.06010.48
4.4.90.0000.03710.48
4.4.80.0030.03310.48
4.4.70.0000.02010.48
4.4.60.0000.01710.48
4.4.50.0000.01310.48
4.4.40.0000.05310.48
4.4.30.0000.01710.48
4.4.20.0000.01710.48
4.4.10.0030.02010.48
4.4.00.0000.02710.48
4.3.110.0000.02010.48
4.3.100.0030.03310.48
4.3.90.0030.03010.48
4.3.80.0030.05010.48
4.3.70.0000.03010.48
4.3.60.0030.01310.48
4.3.50.0000.03010.48
4.3.40.0000.04310.48
4.3.30.0000.02710.48
4.3.20.0030.03710.48
4.3.10.0000.02710.48
4.3.00.0000.03710.48

preferences:
48.22 ms | 401 KiB | 5 Q