3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*************************************************************** * Copyright notice * * (c) 2007 Dmitry Dulepov <dmitry@typo3.org> * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * The GNU General Public License can be found at * http://www.gnu.org/copyleft/gpl.html. * * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * [CLASS/FUNCTION INDEX of SCRIPT] */ /** * Content post-processing functions. * * @author Dmitry Dulepov <dmitry@typo3.org> * @package TYPO3 * @subpackage tx_robots */ class tx_robots_postproc { /** * Checks for indexing flags * * @param array $params Unused * @param object $pObj Reference to TSFE */ function contentPostProcOutput(&$params, &$pObj) { // Only if flags are non-zero and <meta name="robots"> is not set already if ($GLOBALS['TSFE']->page['tx_robots_flags'] && false !== ($pos = stripos($pObj->content, '</head>')) && !preg_match('/<meta[^>]*\sname=([\'"])?robots\1/i', $pObj->content)) { $values = array(1 => 'index', 2 => 'follow'); if ($GLOBALS['TSFE']->page['tx_robots_flags'] & 1) { $values[1] = 'noindex'; } if ($GLOBALS['TSFE']->page['tx_robots_flags'] & 2) { $values[2] = 'nofollow'; } $pObj->content = substr($pObj->content, 0, $pos) . '<meta name="robots" content="' . implode(',', $values) . '" />' . chr(10) . substr($pObj->content, $pos); } } } if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/robots/class.tx_robots_postproc.php']) { include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/robots/class.tx_robots_postproc.php']); } ?>

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.0160.00318.55
8.3.50.0120.00722.32
8.3.40.0100.01018.69
8.3.30.0150.00418.88
8.3.20.0080.00020.32
8.3.10.0030.00623.66
8.3.00.0050.00319.18
8.2.180.0090.00616.38
8.2.170.0150.00022.96
8.2.160.0110.00420.49
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0110.00426.16
8.2.120.0070.00419.02
8.2.110.0000.00921.90
8.2.100.0060.00620.40
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0060.00317.38
8.2.60.0060.00617.68
8.2.50.0000.00918.07
8.2.40.0000.00819.82
8.2.30.0040.00418.20
8.2.20.0000.00917.62
8.2.10.0040.00418.02
8.2.00.0000.00817.63
8.1.280.0080.00825.92
8.1.270.0080.00022.13
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.97
8.1.230.0070.00418.88
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0030.00518.65
8.1.160.0000.00722.07
8.1.150.0060.00318.50
8.1.140.0040.00417.26
8.1.130.0070.00017.79
8.1.120.0000.00717.41
8.1.110.0000.00717.38
8.1.100.0040.00417.47
8.1.90.0040.00417.45
8.1.80.0080.00017.35
8.1.70.0000.00817.29
8.1.60.0000.00917.48
8.1.50.0000.00817.47
8.1.40.0050.00517.43
8.1.30.0030.00617.43
8.1.20.0050.00317.58
8.1.10.0020.00517.43
8.1.00.0040.00417.39
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00918.42
8.0.270.0000.00717.22
8.0.260.0000.00617.18
8.0.250.0070.00016.93
8.0.240.0040.00416.79
8.0.230.0030.00316.81
8.0.220.0040.00416.74
8.0.210.0060.00316.73
8.0.200.0030.00316.80
8.0.190.0040.00416.94
8.0.180.0000.00716.95
8.0.170.0080.00016.94
8.0.160.0000.00716.85
8.0.150.0040.00416.70
8.0.140.0030.00316.78
8.0.130.0030.00313.32
8.0.120.0040.00416.88
8.0.110.0080.00016.76
8.0.100.0040.00316.84
8.0.90.0000.00716.89
8.0.80.0070.01516.84
8.0.70.0080.00016.88
8.0.60.0050.00216.65
8.0.50.0000.00816.82
8.0.30.0120.01017.06
8.0.20.0070.01117.40
8.0.10.0000.00716.84
8.0.00.0110.01216.67
7.4.330.0000.00515.00
7.4.320.0000.00716.49
7.4.300.0030.00316.47
7.4.290.0040.00416.46
7.4.280.0100.00016.36
7.4.270.0030.00316.36
7.4.260.0030.00316.44
7.4.250.0040.00416.47
7.4.240.0000.00716.53
7.4.230.0040.00416.45
7.4.220.0070.01016.63
7.4.210.0120.00616.63
7.4.200.0040.00316.51
7.4.190.0030.00316.51
7.4.160.0110.00516.29
7.4.150.0130.00617.40
7.4.140.0130.00517.86
7.4.130.0080.00916.40
7.4.120.0070.00916.36
7.4.110.0180.00616.40
7.4.100.0090.00916.38
7.4.90.0110.00616.27
7.4.80.0070.01019.39
7.4.70.0060.01016.37
7.4.60.0140.00716.35
7.4.50.0040.00416.31
7.4.40.0030.01316.36
7.4.30.0100.00616.27
7.4.00.0120.00414.70
7.3.330.0030.00313.16
7.3.320.0000.00513.13
7.3.310.0040.00416.30
7.3.300.0070.00016.07
7.3.290.0070.00716.28
7.3.280.0100.00816.15
7.3.270.0170.00017.40
7.3.260.0130.00316.11
7.3.250.0060.01116.28
7.3.240.0170.00416.30
7.3.230.0110.00516.43
7.3.210.0070.01016.18
7.3.200.0120.00619.39
7.3.190.0140.00816.43
7.3.180.0090.01116.46
7.3.170.0040.01116.61
7.3.160.0140.00716.14
7.3.120.0100.00714.84
7.3.110.0110.00314.57
7.3.100.0070.01014.68
7.3.90.0100.00314.93
7.3.80.0000.01415.05
7.3.70.0040.00714.86
7.3.60.0040.01114.45
7.3.50.0060.00914.54
7.3.40.0040.01114.83
7.3.30.0040.00814.74
7.3.20.0100.00616.39
7.3.10.0060.00616.59
7.3.00.0040.00716.55
7.2.330.0030.01416.37
7.2.320.0090.00916.66
7.2.310.0030.01416.41
7.2.300.0130.00316.46
7.2.290.0140.00716.43
7.2.240.0100.00615.24
7.2.230.0070.01015.16
7.2.220.0070.00715.00
7.2.210.0060.00614.84
7.2.200.0030.01314.90
7.2.190.0060.00615.04
7.2.180.0110.00414.84
7.2.170.0100.00614.98
7.2.160.0040.00814.83
7.2.150.0100.00716.98
7.2.140.0080.00616.89
7.2.130.0070.01016.79
7.2.120.0060.00616.86
7.2.110.0070.00716.89
7.2.100.0040.00816.87
7.2.90.0040.00716.74
7.2.80.0070.00316.95
7.2.70.0080.00416.83
7.2.60.0040.01216.66
7.2.50.0100.00616.62
7.2.40.0100.00316.72
7.2.30.0060.01216.98
7.2.20.0070.01016.81
7.2.10.0040.00816.47
7.2.00.0070.00817.95
7.1.330.0070.01115.70
7.1.320.0060.01015.81
7.1.310.0060.01115.47
7.1.300.0080.00415.45
7.1.290.0060.00315.75
7.1.280.0000.01115.47
7.1.270.0060.01015.47
7.1.260.0030.01315.90
7.1.250.0070.01015.69
7.1.200.0040.00815.80
7.1.100.0030.00917.64
7.1.70.0070.00716.77
7.1.60.0070.00317.18
7.1.50.0160.00616.62
7.1.00.0030.07722.45
7.0.200.0110.00416.79
7.0.140.0070.06721.97
7.0.60.0030.04719.95
7.0.50.0130.06017.85
7.0.40.0030.04720.40
7.0.30.0270.05020.23
7.0.20.0300.07720.12
7.0.10.0070.04320.16
7.0.00.0100.04020.25
5.6.280.0100.06321.14
5.6.210.0130.06020.57
5.6.200.0070.08318.18
5.6.190.0030.04320.50
5.6.180.0400.07020.39
5.6.170.0270.04020.44
5.6.160.0070.08720.61
5.6.150.0130.06018.21
5.6.140.0070.05018.28
5.6.130.0030.04018.13
5.6.120.0200.04021.04
5.6.110.0170.07321.13
5.6.100.0030.05320.99
5.6.90.0170.08321.12
5.6.80.0000.06020.54
5.5.350.4100.03720.54
5.5.340.0070.04717.93
5.5.330.0100.08320.43
5.5.320.0330.03720.38
5.5.310.0230.08020.37
5.5.300.0030.08717.98
5.5.290.0000.04717.97
5.5.280.0070.08720.91
5.5.270.0030.04020.84
5.5.260.0070.08320.99
5.5.250.0030.08320.63
5.5.240.0070.07720.14
5.4.450.0270.04725.29
5.4.440.0830.04019.49
5.4.430.0570.04019.56
5.4.420.0270.02719.32
5.4.410.0230.04719.17
5.4.400.0400.03319.31
5.4.390.0230.04318.88
5.4.380.0330.05318.58
5.4.370.0870.05318.80
5.4.360.0930.05318.73
5.4.350.0870.06318.73
5.4.340.0930.06018.59
5.4.320.0070.04712.52
5.4.310.0040.04112.52
5.4.300.0070.05512.51
5.4.290.0070.05612.51
5.4.280.0070.05312.41
5.4.270.0100.05012.41
5.4.260.0110.05212.41
5.4.250.0080.05312.41
5.4.240.0070.05312.41
5.4.230.0110.05212.40
5.4.220.0110.05112.41
5.4.210.0080.05312.40
5.4.200.0090.05812.40
5.4.190.0090.05212.39
5.4.180.0080.06812.40
5.4.170.0070.05612.41
5.4.160.0080.05112.40
5.4.150.0080.05112.40
5.4.140.0110.05012.09
5.4.130.0130.04412.07
5.4.120.0090.05212.02
5.4.110.0070.05312.02
5.4.100.0080.04812.02
5.4.90.0090.05112.03
5.4.80.0050.05512.02
5.4.70.0110.04712.02
5.4.60.0050.05312.02
5.4.50.0080.05112.02
5.4.40.0050.05312.01
5.4.30.0110.04612.01
5.4.20.0040.05412.00
5.4.10.0080.05012.01
5.4.00.0090.04911.50
5.3.290.0050.04112.80
5.3.280.0050.05512.71
5.3.270.0040.05912.72
5.3.260.0080.05512.72
5.3.250.0100.05112.72
5.3.240.0140.04812.72
5.3.230.0060.05412.71
5.3.220.0090.05312.68
5.3.210.0080.05512.68
5.3.200.0100.05112.68
5.3.190.0120.04012.68
5.3.180.0080.05412.67
5.3.170.0070.05412.67
5.3.160.0070.05412.68
5.3.150.0070.05512.67
5.3.140.0070.05312.66
5.3.130.0070.06112.66
5.3.120.0130.05412.66
5.3.110.0130.05412.66
5.3.100.0130.04912.13
5.3.90.0100.05412.12
5.3.80.0090.05312.10
5.3.70.0100.05112.10
5.3.60.0130.04912.09
5.3.50.0090.05312.05
5.3.40.0140.05712.04
5.3.30.0120.05511.99
5.3.20.0080.05711.78
5.3.10.0090.05311.75
5.3.00.0100.05211.73
5.2.170.0080.0449.23
5.2.160.0100.0409.23
5.2.150.0050.0469.24
5.2.140.0070.0459.23
5.2.130.0050.0449.19
5.2.120.0110.0399.19
5.2.110.0050.0429.20
5.2.100.0050.0509.19
5.2.90.0060.0429.19
5.2.80.0060.0459.19
5.2.70.0040.0469.19
5.2.60.0070.0429.14
5.2.50.0070.0429.11
5.2.40.0040.0429.09
5.2.30.0070.0429.06
5.2.20.0080.0409.05
5.2.10.0050.0408.96
5.2.00.0050.0428.82
5.1.60.0060.0358.11
5.1.50.0050.0358.10
5.1.40.0070.0348.08
5.1.30.0080.0358.43
5.1.20.0050.0388.45
5.1.10.0070.0348.18
5.1.00.0040.0388.18
5.0.50.0050.0276.65
5.0.40.0050.0276.52
5.0.30.0050.0426.34
5.0.20.0060.0256.29
5.0.10.0050.0286.27
5.0.00.0040.0416.27
4.4.90.0040.0224.78
4.4.80.0030.0234.75
4.4.70.0060.0194.75
4.4.60.0040.0254.76
4.4.50.0040.0234.77
4.4.40.0060.0354.71
4.4.30.0090.0184.75
4.4.20.0070.0214.84
4.4.10.0050.0224.85
4.4.00.0040.0334.76
4.3.110.0020.0214.67
4.3.100.0030.0164.66
4.3.90.0010.0164.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0010.0164.63
4.3.50.0030.0174.62
4.3.40.0030.0254.53
4.3.30.0030.0203.32
4.3.20.0010.0223.30
4.3.10.0050.0183.25
4.3.00.0030.01718.65

preferences:
46.23 ms | 401 KiB | 5 Q