3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * * @package install * @version $Id$ * @copyright (c) 2005 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /**#@+ * @ignore */ define('IN_PHPBB', true); define('IN_INSTALL', true); /**#@-*/ $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); // @todo Review this test and see if we can find out what it is which prevents PHP 4.2.x from even displaying the page with requirements on it if (version_compare(PHP_VERSION, '4.3.3') < 0) { die('You are running an unsupported PHP version. Please upgrade to PHP 4.3.3 or higher before trying to install phpBB 3.0'); } function phpbb_require_updated($path, $optional = false) { global $phpbb_root_path; $new_path = $phpbb_root_path . 'install/update/new/' . $path; $old_path = $phpbb_root_path . $path; if (file_exists($new_path)) { require($new_path); } else if (!$optional || file_exists($old_path)) { require($old_path); } } phpbb_require_updated('includes/startup.' . $phpEx); // Try to override some limits - maybe it helps some... @set_time_limit(0); $mem_limit = @ini_get('memory_limit'); if (!empty($mem_limit)) { $unit = strtolower(substr($mem_limit, -1, 1)); $mem_limit = (int) $mem_limit; if ($unit == 'k') { $mem_limit = floor($mem_limit / 1024); } else if ($unit == 'g') { $mem_limit *= 1024; } else if (is_numeric($unit)) { $mem_limit = floor((int) ($mem_limit . $unit) / 1048576); } $mem_limit = max(128, $mem_limit) . 'M'; } else { $mem_limit = '128M'; } @ini_set('memory_limit', $mem_limit); // Include essential scripts require($phpbb_root_path . 'includes/functions.' . $phpEx); phpbb_require_updated('includes/functions_content.' . $phpEx, true); include($phpbb_root_path . 'includes/auth.' . $phpEx); include($phpbb_root_path . 'includes/session.' . $phpEx); include($phpbb_root_path . 'includes/template.' . $phpEx); include($phpbb_root_path . 'includes/acm/acm_file.' . $phpEx); include($phpbb_root_path . 'includes/cache.' . $phpEx); include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); include($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); require($phpbb_root_path . 'includes/functions_install.' . $phpEx); // Try and load an appropriate language if required $language = basename(request_var('language', '')); if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language) { $accept_lang_ary = explode(',', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])); foreach ($accept_lang_ary as $accept_lang) { // Set correct format ... guess full xx_yy form $accept_lang = substr($accept_lang, 0, 2) . '_' . substr($accept_lang, 3, 2); if (file_exists($phpbb_root_path . 'language/' . $accept_lang) && is_dir($phpbb_root_path . 'language/' . $accept_lang)) { $language = $accept_lang; break; } else { // No match on xx_yy so try xx $accept_lang = substr($accept_lang, 0, 2); if (file_exists($phpbb_root_path . 'language/' . $accept_lang) && is_dir($phpbb_root_path . 'language/' . $accept_lang)) { $language = $accept_lang; break; } } } } // No appropriate language found ... so let's use the first one in the language // dir, this may or may not be English if (!$language) { $dir = @opendir($phpbb_root_path . 'language'); if (!$dir) { die('Unable to access the language directory'); exit; } while (($file = readdir($dir)) !== false) { $path = $phpbb_root_path . 'language/' . $file; if (!is_file($path) && !is_link($path) && file_exists($path . '/iso.txt')) { $language = $file; break; } } closedir($dir); } if (!file_exists($phpbb_root_path . 'language/' . $language) || !is_dir($phpbb_root_path . 'language/' . $language)) { die('No language found!'); } // And finally, load the relevant language files include($phpbb_root_path . 'language/' . $language . '/common.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/acp/common.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/acp/board.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/install.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/posting.' . $phpEx); // usually we would need every single constant here - and it would be consistent. For 3.0.x, use a dirty hack... :( // Define needed constants define('CHMOD_ALL', 7); define('CHMOD_READ', 4); define('CHMOD_WRITE', 2); define('CHMOD_EXECUTE', 1); $mode = request_var('mode', 'overview'); $sub = request_var('sub', ''); // Set PHP error handler to ours set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler'); $user = new user(); $auth = new auth(); $cache = new cache(); $template = new template();

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.4.20.0090.01218.13
8.4.10.0060.00318.06
8.3.150.0070.01317.13
8.3.140.0120.00320.80
8.3.130.0060.00318.66
8.3.120.0110.00018.96
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00717.97
8.3.70.0090.01216.73
8.3.60.0000.01518.43
8.3.50.0060.01221.93
8.3.40.0180.00018.92
8.3.30.0070.00719.18
8.3.20.0040.00420.29
8.3.10.0030.00522.10
8.3.00.0030.00522.57
8.2.260.0150.00317.02
8.2.250.0080.01318.91
8.2.240.0000.00817.23
8.2.230.0060.00322.58
8.2.220.0070.00337.54
8.2.210.0090.00626.77
8.2.200.0070.00316.88
8.2.190.0090.00616.75
8.2.180.0130.00617.00
8.2.170.0070.00722.96
8.2.160.0070.00721.08
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00719.95
8.2.110.0030.00622.08
8.2.100.0040.00818.03
8.2.90.0080.00018.94
8.2.80.0050.00317.97
8.2.70.0030.00717.63
8.2.60.0080.00018.04
8.2.50.0000.00818.07
8.2.40.0080.00018.46
8.2.30.0080.00018.20
8.2.20.0040.00417.90
8.2.10.0040.00417.80
8.2.00.0040.00417.81
8.1.310.0000.00816.67
8.1.300.0100.00618.11
8.1.290.0060.00330.84
8.1.280.0000.01525.92
8.1.270.0090.00023.96
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0000.00923.79
8.1.230.0040.00819.29
8.1.220.0050.00317.77
8.1.210.0060.00318.77
8.1.200.0030.00617.50
8.1.190.0030.00617.55
8.1.180.0040.00418.10
8.1.170.0040.00418.69
8.1.160.0000.00922.02
8.1.150.0040.00418.77
8.1.140.0000.00917.59
8.1.130.0070.00017.94
8.1.120.0040.00417.48
8.1.110.0030.00517.55
8.1.100.0000.00717.64
8.1.90.0020.00517.41
8.1.80.0000.00817.54
8.1.70.0000.00717.50
8.1.60.0040.00417.77
8.1.50.0050.00317.74
8.1.40.0060.00317.61
8.1.30.0030.00617.83
8.1.20.0030.00517.74
8.1.10.0000.00817.68
8.1.00.0060.00317.59
8.0.300.0000.00718.77
8.0.290.0040.00417.30
8.0.280.0030.00318.64
8.0.270.0020.00517.44
8.0.260.0030.00617.06
8.0.250.0000.00817.26
8.0.240.0030.00617.26
8.0.230.0000.00817.11
8.0.220.0000.00717.03
8.0.210.0000.00717.10
8.0.200.0000.00717.06
8.0.190.0000.00817.13
8.0.180.0040.00417.06
8.0.170.0030.00617.09
8.0.160.0040.00417.08
8.0.150.0050.00217.04
8.0.140.0040.00417.15
8.0.130.0000.00713.57
8.0.120.0020.00914.70
8.0.110.0060.00414.73
8.0.100.0050.00614.70
8.0.90.0060.00514.75
8.0.80.0040.01114.75
8.0.70.0060.00514.68
8.0.60.0070.00314.71
8.0.50.0040.00714.66
8.0.30.0120.00415.37
8.0.20.0100.00715.49
8.0.10.0070.00414.75
8.0.00.0040.01015.33
7.4.330.0030.00315.16
7.4.320.0000.00616.54
7.4.300.0000.00616.54
7.4.290.0030.00416.60
7.4.280.0000.00716.68
7.4.270.0030.00616.75
7.4.260.0000.01016.58
7.4.250.0060.00314.49
7.4.240.0080.00215.02
7.4.230.0050.00814.50
7.4.220.0080.00714.53
7.4.210.0100.00615.43
7.4.200.0040.00714.43
7.4.190.0070.00314.48
7.4.180.0110.00213.44
7.4.160.0050.01014.53
7.4.150.0100.00414.72
7.4.140.0130.00515.62
7.4.130.0100.00915.09
7.4.120.0080.00715.09
7.4.110.0100.00614.45
7.4.100.0100.00414.55
7.4.90.0080.00814.54
7.4.80.0090.00814.90
7.4.70.0100.00614.95
7.4.60.0060.01014.92
7.4.50.0160.00314.83
7.4.40.0080.00816.35
7.4.30.0100.00614.93
7.4.20.0090.00614.33
7.4.10.0100.00514.36
7.4.00.0080.00614.57
7.3.330.0000.00513.47
7.3.320.0100.00313.47
7.3.310.0070.00414.45
7.3.300.0050.00614.54
7.3.290.0070.00414.45
7.3.280.0100.00715.40
7.3.270.0100.00514.79
7.3.260.0180.00814.47
7.3.250.0100.00515.04
7.3.240.0060.00814.48
7.3.230.0110.00414.54
7.3.220.0100.00413.53
7.3.210.0110.00514.50
7.3.200.0090.00915.72
7.3.190.0070.00914.90
7.3.180.0070.00915.00
7.3.170.0100.00614.90
7.3.160.0080.00815.05
7.3.150.0050.00814.37
7.3.140.0120.00514.49
7.3.130.0100.00614.45
7.3.120.0100.00514.60
7.3.110.0130.00214.36
7.3.100.0100.00714.27
7.3.90.0080.00714.56
7.3.80.0110.00414.44
7.3.70.0100.00414.31
7.3.60.0090.00614.41
7.3.50.0120.00414.56
7.3.40.0070.00714.46
7.3.30.0040.00814.50
7.3.20.0080.00315.62
7.3.10.0060.00615.50
7.3.00.0070.00515.56
7.2.340.0060.00313.59
7.2.330.0070.00614.56
7.2.320.0090.00714.48
7.2.310.0100.00715.10
7.2.300.0100.00915.05
7.2.290.0080.00815.07
7.2.280.0120.00414.59
7.2.270.0130.00614.52
7.2.260.0080.01014.36
7.2.250.0090.00614.51
7.2.240.0050.01014.46
7.2.230.0100.00714.53
7.2.220.0120.00314.42
7.2.210.0120.00314.50
7.2.200.0100.00614.55
7.2.190.0080.00814.55
7.2.180.0140.00414.55
7.2.170.0090.00914.60
7.2.160.0140.00214.55
7.2.150.0090.00815.81
7.2.140.0090.00715.82
7.2.130.0160.00815.85
7.2.120.0080.01015.84
7.2.110.0100.00515.78
7.2.100.0120.00315.70
7.2.90.0160.00615.74
7.2.80.0120.00615.81
7.2.70.0110.00715.79
7.2.60.0100.00815.86
7.2.50.0140.00815.78
7.2.40.0150.00415.85
7.2.30.0240.00615.75
7.2.20.0140.00415.82
7.2.10.0100.00715.93
7.2.00.0060.01016.70
7.1.330.0100.00514.67
7.1.320.0080.00614.69
7.1.310.0090.00514.62
7.1.300.0080.00714.72
7.1.290.0110.00514.75
7.1.280.0080.00714.65
7.1.270.0110.00614.63
7.1.260.0110.00614.64
7.1.250.0150.00214.63
7.1.240.0090.00814.68
7.1.230.0100.00614.75
7.1.220.0090.00614.75
7.1.210.0070.00914.64
7.1.200.0100.00814.94
7.1.190.0120.00414.71
7.1.180.0110.00514.55
7.1.170.0090.01014.71
7.1.160.0070.00714.65
7.1.150.0090.00614.53
7.1.140.0100.00514.60
7.1.130.0130.00414.64
7.1.120.0080.00514.68
7.1.110.0070.00614.68
7.1.100.0060.00715.52
7.1.90.0160.00514.62
7.1.80.0050.00714.65
7.1.70.0080.00515.19
7.1.60.0090.00716.02
7.1.50.0080.00915.20
7.1.40.0060.00714.57
7.1.30.0070.00614.63
7.1.20.0120.00514.69
7.1.10.0110.00614.63
7.1.00.0100.02116.52
7.0.330.0050.01114.48
7.0.320.0090.00514.44
7.0.310.0080.00914.58
7.0.300.0150.00214.55
7.0.290.0110.00614.44
7.0.280.0110.00414.60
7.0.270.0100.00614.44
7.0.260.0140.00214.43
7.0.250.0090.00614.49
7.0.240.0080.00814.66
7.0.230.0080.00814.57
7.0.220.0100.00414.52
7.0.210.0060.00914.50
7.0.200.0070.00615.00
7.0.190.0130.00514.66
7.0.180.0080.00714.59
7.0.170.0070.00814.57
7.0.160.0100.00714.46
7.0.150.0080.00814.47
7.0.140.0080.02316.35
7.0.130.0130.00114.59
7.0.120.0100.00514.66
7.0.110.0100.00414.48
7.0.100.0100.01115.94
7.0.90.0080.01415.84
7.0.80.0100.01315.84
7.0.70.0140.01815.90
7.0.60.0080.01815.91
7.0.50.0090.02515.90
7.0.40.0070.02615.88
7.0.30.0090.02515.86
7.0.20.0080.02615.87
7.0.10.0100.02515.85
7.0.00.0090.02015.87
5.6.400.0110.00713.87
5.6.390.0080.00813.81
5.6.380.0130.00313.75
5.6.370.0110.00713.70
5.6.360.0100.00713.74
5.6.350.0060.01113.61
5.6.340.0110.00513.80
5.6.330.0070.00913.73
5.6.320.0090.00613.73
5.6.310.0060.01213.72
5.6.300.0030.01413.62
5.6.290.0110.00513.71
5.6.280.0050.02715.49
5.6.270.0090.00713.72
5.6.260.0110.00413.79
5.6.250.0080.01415.47
5.6.240.0090.01915.53
5.6.230.0090.01915.60
5.6.220.0080.02615.62
5.6.210.0090.02515.51
5.6.200.0100.02415.67
5.6.190.0080.02415.74
5.6.180.0100.02415.67
5.6.170.0130.02415.61
5.6.160.0060.02715.70
5.6.150.0070.01815.74
5.6.140.0070.02615.59
5.6.130.0110.01615.56
5.6.120.0080.02515.65
5.6.110.0090.02715.62
5.6.100.0100.02415.67
5.6.90.0080.02715.63
5.6.80.0100.02115.29
5.6.70.0080.02615.41
5.6.60.0090.02715.50
5.6.50.0090.02315.44
5.6.40.0090.02315.38
5.6.30.0100.02415.43
5.6.20.0080.02615.40
5.6.10.0130.01515.45
5.6.00.0100.02415.43
5.5.380.0070.01715.41
5.5.370.0080.01615.44
5.5.360.0120.02415.36
5.5.350.0090.02715.27
5.5.340.0070.02415.47
5.5.330.0130.02115.45
5.5.320.0100.02615.49
5.5.310.0080.02815.50
5.5.300.0100.02315.51
5.5.290.0090.02615.36
5.5.280.0090.02515.49
5.5.270.0100.02315.48
5.5.260.0110.01715.49
5.5.250.0090.02515.45
5.5.240.0100.02415.37
5.5.230.0050.02815.26
5.5.220.0100.02015.28
5.5.210.0120.02415.41
5.5.200.0090.02315.32
5.5.190.0090.02615.19
5.5.180.0130.02115.28
5.5.170.0120.01013.59
5.5.160.0080.02515.29
5.5.150.0100.02315.24
5.5.140.0070.02515.24
5.5.130.0090.01515.27
5.5.120.0090.02215.20
5.5.110.0080.03115.23
5.5.100.0050.02715.29
5.5.90.0130.02115.37
5.5.80.0040.01915.33
5.5.70.0110.01615.41
5.5.60.0100.02415.22
5.5.50.0120.02215.30
5.5.40.0090.01615.38
5.5.30.0070.02715.27
5.5.20.0100.02215.33
5.5.10.0110.02215.23
5.5.00.0110.02315.21
5.4.450.0090.01714.32
5.4.440.0110.01914.32
5.4.430.0100.02214.30
5.4.420.0070.02514.29
5.4.410.0080.02514.38
5.4.400.0060.02414.22
5.4.390.0090.02214.21
5.4.380.0090.02214.29
5.4.370.0100.02214.27
5.4.360.0090.01514.17
5.4.350.0100.02314.30
5.4.340.0120.01914.33
5.4.330.0100.00512.61
5.4.320.0100.01614.28
5.4.310.0080.02314.18
5.4.300.0110.02014.25
5.4.290.0060.01714.22
5.4.280.0090.02114.25
5.4.270.0080.02414.41
5.4.260.0090.02314.27
5.4.250.0080.01514.23
5.4.240.0080.02414.18
5.4.230.0060.02114.11
5.4.220.0070.01614.14
5.4.210.0080.01514.20
5.4.200.0090.02014.19
5.4.190.0070.02114.10
5.4.180.0080.02214.15
5.4.170.0080.02114.17
5.4.160.0070.02414.15
5.4.150.0070.02514.09
5.4.140.0100.02113.63
5.4.130.0080.02113.59
5.4.120.0100.02013.49
5.4.110.0050.01713.69
5.4.100.0090.02013.65
5.4.90.0050.01513.56
5.4.80.0110.01913.69
5.4.70.0080.02413.61
5.4.60.0070.02113.61
5.4.50.0080.01313.65
5.4.40.0080.02213.70
5.4.30.0070.02213.61
5.4.20.0080.02313.60
5.4.10.0060.01713.58
5.4.00.0080.02313.31
5.3.290.0060.02513.56
5.3.280.0080.01513.37
5.3.270.0110.01213.53
5.3.260.0110.01913.60
5.3.250.0070.02313.51
5.3.240.0080.02013.50
5.3.230.0040.02013.40
5.3.220.0140.01913.41
5.3.210.0070.01613.53
5.3.200.0080.02313.50
5.3.190.0090.02313.51
5.3.180.0070.02413.53
5.3.170.0030.02613.53
5.3.160.0070.01713.48
5.3.150.0040.02613.48
5.3.140.0070.02413.45
5.3.130.0100.02413.47
5.3.120.0060.01913.56
5.3.110.0050.02213.53
5.3.100.0090.02313.31
5.3.90.0110.02013.49
5.3.80.0070.02113.39
5.3.70.0100.01813.39
5.3.60.0060.02513.26
5.3.50.0090.02213.26
5.3.40.0040.02013.23
5.3.30.0080.02213.43
5.3.20.0080.02213.21
5.3.10.0080.01713.11
5.3.00.0080.02213.06

preferences:
83.62 ms | 403 KiB | 5 Q