3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Hauptkonfigurationsdatei * @package redaxo4 */ define('REX_MIN_PHP_VERSION', '5.3.0'); if (version_compare(PHP_VERSION, REX_MIN_PHP_VERSION) < 0) { exit('PHP version >=' . REX_MIN_PHP_VERSION . ' needed!'); } // start output buffering as early as possible, so we can be sure // we can set http header whenever we want/need to ob_start(); ob_implicit_flush(0); mb_internal_encoding('UTF-8'); require_once dirname(__FILE__) . '/lib/path.php'; rex_path::init($REX['HTDOCS_PATH'], $REX['BACKEND_FOLDER']); require_once rex_path::core('lib/autoload.php'); // register core-classes as php-handlers rex_autoload::register(); // add core base-classpath to autoloader rex_autoload::addDirectory(rex_path::core('lib')); rex_autoload::addDirectory(rex_path::core('vendor')); rex_url::init($REX['HTDOCS_PATH'], $REX['BACKEND_FOLDER']); // start timer at the very beginning rex::setProperty('timer', new rex_timer); // register rex_error_handler rex_error_handler::register(); // add backend flag to rex rex::setProperty('redaxo', $REX['REDAXO']); // reset $REX unset($REX); // add core lang directory to rex_i18n rex_i18n::addDirectory(rex_path::core('lang')); // add core base-fragmentpath to fragmentloader rex_fragment::addDirectory(rex_path::core('fragments/')); // ----------------- FUNCTIONS require_once rex_path::core('functions/function_rex_globals.inc.php'); require_once rex_path::core('functions/function_rex_mquotes.inc.php'); require_once rex_path::core('functions/function_rex_other.inc.php'); // ----------------- VERSION rex::setProperty('version', 5); rex::setProperty('subversion', 0); rex::setProperty('minorversion', 'alpha3'); $config = rex_file::getConfig(rex_path::data('config.yml')); foreach ($config as $key => $value) { if (in_array($key, array('fileperm', 'dirperm'))) { $value = octdec($value); } rex::setProperty($key, $value); } date_default_timezone_set(rex::getProperty('timezone', 'Europe/Berlin')); // ----------------- REX PERMS rex_perm::register('advancedMode[]', rex_i18n::msg('perm_options_advancedMode[]'), rex_perm::OPTIONS); rex_complex_perm::register('clang', 'rex_clang_perm'); // ----- SET CLANG if (!rex::isSetup()) { rex_clang::setCurrentId(rex_request('clang', 'int', rex::getProperty('start_clang_id'))); }

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.0180.00418.55
8.3.50.0080.00821.93
8.3.40.0150.00619.13
8.3.30.0140.00018.82
8.3.20.0030.00618.85
8.3.10.0000.00820.36
8.3.00.0100.00017.75
8.2.180.0100.01316.88
8.2.170.0110.00422.96
8.2.160.0070.00722.12
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0150.00326.16
8.2.120.0050.00319.83
8.2.110.0000.01021.00
8.2.100.0110.00417.84
8.2.90.0030.00519.34
8.2.80.0000.00818.05
8.2.70.0060.00317.75
8.2.60.0070.00517.90
8.2.50.0050.00318.07
8.2.40.0080.00018.28
8.2.30.0040.00419.78
8.2.20.0050.00317.89
8.2.10.0040.00417.86
8.2.00.0080.00017.83
8.1.280.0090.00925.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0090.00321.15
8.1.220.0040.00418.77
8.1.210.0080.00019.01
8.1.200.0030.00617.48
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0050.00318.99
8.1.160.0000.00718.85
8.1.150.0000.00818.57
8.1.140.0000.00717.41
8.1.130.0030.00317.77
8.1.120.0040.00417.58
8.1.110.0060.00317.45
8.1.100.0000.00717.54
8.1.90.0080.00017.41
8.1.80.0040.00417.41
8.1.70.0040.00417.48
8.1.60.0000.00917.68
8.1.50.0080.00017.57
8.1.40.0030.00517.66
8.1.30.0040.00417.71
8.1.20.0040.00417.77
8.1.10.0080.00017.73
8.1.00.0000.00917.53
8.0.300.0050.00320.20
8.0.290.0030.00617.00
8.0.280.0000.00818.54
8.0.270.0030.00317.46
8.0.260.0030.00617.02
8.0.250.0080.00017.04
8.0.240.0040.00817.20
8.0.230.0030.00617.11
8.0.220.0070.00016.99
8.0.210.0070.00017.01
8.0.200.0030.00317.02
8.0.190.0040.00417.16
8.0.180.0040.00417.06
8.0.170.0090.00017.08
8.0.160.0070.00017.13
8.0.150.0000.00817.04
8.0.140.0040.00417.02
8.0.130.0030.00313.57
8.0.120.0010.00615.29
8.0.110.0070.00315.26
8.0.100.0050.00415.38
8.0.90.0080.00215.24
8.0.80.0070.00715.30
8.0.70.0100.00015.33
8.0.60.0050.00615.26
8.0.50.0090.00215.33
8.0.30.0080.00915.96
8.0.20.0070.01016.14
8.0.10.0050.00515.31
8.0.00.0120.00415.81
7.4.330.0030.00314.83
7.4.320.0000.00616.72
7.4.300.0060.00016.59
7.4.290.0030.00516.53
7.4.280.0040.00416.63
7.4.270.0040.00416.70
7.4.260.0050.00013.37
7.4.250.0050.00415.00
7.4.240.0090.00115.06
7.4.230.0050.00515.02
7.4.220.0060.00915.10
7.4.210.0070.00716.00
7.4.200.0080.00315.10
7.4.190.0060.00515.15
7.4.180.0050.00213.43
7.4.160.0050.00714.91
7.4.150.0040.00915.38
7.4.140.0100.00715.89
7.4.130.0120.00815.52
7.4.120.0080.00715.51
7.4.110.0100.00514.83
7.4.100.0110.00514.98
7.4.90.0140.00415.03
7.4.80.0060.00916.12
7.4.70.0110.00415.03
7.4.60.0060.00914.88
7.4.50.0100.00014.61
7.4.40.0120.00317.69
7.4.30.0110.00514.86
7.4.20.0060.00213.18
7.4.10.0080.00614.15
7.4.00.0050.00814.46
7.3.330.0020.00213.41
7.3.320.0000.00513.32
7.3.310.0050.00314.95
7.3.300.0000.00914.81
7.3.290.0040.00714.85
7.3.280.0090.00515.65
7.3.270.0130.00515.31
7.3.260.0110.00716.58
7.3.250.0110.00515.45
7.3.240.0040.01014.88
7.3.230.0060.00614.91
7.3.220.0090.00013.12
7.3.210.0060.00814.92
7.3.200.0090.00316.29
7.3.190.0110.00514.79
7.3.180.0100.00414.86
7.3.170.0150.00415.00
7.3.160.0110.00614.88
7.3.150.0040.00413.27
7.3.140.0050.00313.21
7.3.130.0070.00614.09
7.3.120.0030.00914.32
7.3.110.0070.00613.99
7.3.100.0060.00614.09
7.3.90.0080.00214.28
7.3.80.0030.00513.97
7.3.70.0030.00814.02
7.3.60.0000.00714.15
7.3.50.0050.00514.22
7.3.40.0070.00313.98
7.3.30.0040.00514.02
7.3.20.0060.00415.89
7.3.10.0030.00915.97
7.3.00.0020.00715.94
7.2.340.0000.00713.30
7.2.330.0050.00714.85
7.2.320.0060.00614.94
7.2.310.0040.00914.84
7.2.300.0070.00614.83
7.2.290.0100.00214.81
7.2.280.0040.00413.21
7.2.270.0130.00013.18
7.2.260.0070.00914.10
7.2.250.0080.00814.27
7.2.240.0090.00614.03
7.2.230.0080.00714.23
7.2.220.0090.00414.18
7.2.210.0120.00214.01
7.2.200.0060.00514.24
7.2.190.0050.00414.29
7.2.180.0030.00714.24
7.2.170.0070.00314.19
7.2.160.0040.00614.18
7.2.150.0040.00416.06
7.2.140.0050.00416.08
7.2.130.0050.00916.38
7.2.120.0070.00616.25
7.2.110.0120.00216.35
7.2.100.0050.00716.27
7.2.90.0050.00916.25
7.2.80.0080.00516.40
7.2.70.0060.00816.35
7.2.60.0120.00416.29
7.2.50.0050.00816.33
7.2.40.0020.00816.29
7.2.30.0060.00816.27
7.2.20.0110.00416.32
7.2.10.0080.00416.37
7.2.00.0080.00516.16
7.1.330.0040.00914.91
7.1.320.0070.00415.04
7.1.310.0070.00714.91
7.1.300.0040.00614.85
7.1.290.0100.00214.86
7.1.280.0070.00314.81
7.1.270.0070.00414.81
7.1.260.0080.00514.90
7.1.250.0060.00615.14
7.1.240.0110.00314.94
7.1.230.0100.00314.82
7.1.220.0070.00414.98
7.1.210.0070.00614.94
7.1.200.0070.00314.96
7.1.190.0080.00614.78
7.1.180.0080.00514.74
7.1.170.0100.00414.80
7.1.160.0050.00614.93
7.1.150.0070.00714.77
7.1.140.0080.00414.78
7.1.130.0080.00514.92
7.1.120.0050.00814.69
7.1.110.0050.01014.90
7.1.100.0060.00415.96
7.1.90.0080.00514.87
7.1.80.0050.00914.95
7.1.70.0040.00515.64
7.1.60.0070.00816.44
7.1.50.0050.01115.58
7.1.40.0050.00614.91
7.1.30.0050.00914.97
7.1.20.0050.00814.81
7.1.10.0070.00514.88
7.1.00.0050.02417.27
7.0.330.0080.00514.69
7.0.320.0080.00514.58
7.0.310.0090.00114.59
7.0.300.0050.00814.65
7.0.290.0060.00614.69
7.0.280.0080.00614.55
7.0.270.0040.00714.57
7.0.260.0090.00414.60
7.0.250.0090.00414.73
7.0.240.0100.00214.75
7.0.230.0050.00614.76
7.0.220.0050.00814.59
7.0.210.0070.00614.66
7.0.200.0060.00614.65
7.0.190.0070.00614.71
7.0.180.0100.00314.54
7.0.170.0090.00214.72
7.0.160.0080.00514.60
7.0.150.0050.00814.71
7.0.140.0050.02617.14
7.0.130.0060.00814.78
7.0.120.0130.00214.60
7.0.110.0050.00914.67
7.0.100.0060.00714.73
7.0.90.0080.00514.62
7.0.80.0000.01014.52
7.0.70.0090.00314.62
7.0.60.0070.02216.41
7.0.50.0090.02015.71
7.0.40.0060.02515.08
7.0.30.0110.02114.96
7.0.20.0080.01815.04
7.0.10.0060.01815.01
7.0.00.0020.02215.02
5.6.400.0070.00713.60
5.6.390.0070.00313.25
5.6.380.0060.00713.51
5.6.370.0070.00713.50
5.6.360.0050.00713.46
5.6.350.0070.00813.22
5.6.340.0070.00713.65
5.6.330.0100.00513.52
5.6.320.0060.00613.51
5.6.310.0030.01113.61
5.6.300.0060.00413.42
5.6.290.0030.00713.48
5.6.280.0080.02815.98
5.6.270.0060.00913.44
5.6.260.0050.00713.40
5.6.250.0070.00513.38
5.6.240.0100.00313.39
5.6.230.0080.00313.55
5.6.220.0070.00513.44
5.6.210.0080.02215.87
5.6.200.0060.03215.03
5.6.190.0070.02414.95
5.6.180.0050.03114.95
5.6.170.0110.02615.02
5.6.160.0100.01815.09
5.6.150.0100.03015.10
5.6.140.0060.02115.04
5.6.130.0070.02214.96
5.6.120.0090.02915.03
5.6.110.0050.02115.08
5.6.100.0100.02914.89
5.6.90.0020.02715.01
5.6.80.0060.03014.81
5.6.70.0100.02214.83
5.6.60.0070.03014.77
5.6.50.0080.02914.71
5.6.40.0090.02814.88
5.6.30.0050.03214.68
5.6.20.0110.02514.72
5.6.10.0050.03014.73
5.6.00.0050.02314.78
5.5.380.0070.00513.42
5.5.370.0060.00413.44
5.5.360.0080.00413.26
5.5.350.0190.02715.75
5.5.340.0080.02714.84
5.5.330.0040.02514.74
5.5.320.0090.03014.84
5.5.310.0080.03014.93
5.5.300.0080.01614.88
5.5.290.0050.02114.96
5.5.280.0080.02114.99
5.5.270.0060.02914.81
5.5.260.0060.01714.85
5.5.250.0080.02114.73
5.5.240.0090.03014.84
5.5.230.0070.03114.73
5.5.220.0080.03014.72
5.5.210.0070.02814.70
5.5.200.0080.02714.76
5.5.190.0110.01314.62
5.5.180.0060.03114.66
5.5.170.0110.00213.23
5.5.160.0070.02714.60
5.5.150.0080.02414.45
5.5.140.0050.03114.59
5.5.130.0080.02414.56
5.5.120.0080.02814.56
5.5.110.0090.01714.58
5.5.100.0040.01914.63
5.5.90.0070.01414.77
5.5.80.0070.01814.67
5.5.70.0070.01614.59
5.5.60.0050.03114.72
5.5.50.0070.02714.74
5.5.40.0060.02914.65
5.5.30.0100.02614.52
5.5.20.0070.01914.55
5.5.10.0080.02214.49
5.5.00.0070.02514.66
5.4.450.0070.01514.37
5.4.440.0040.02414.22
5.4.430.0060.02014.39
5.4.420.0070.02714.21
5.4.410.0060.02014.13
5.4.400.0060.02914.16
5.4.390.0060.02814.11
5.4.380.0060.02914.19
5.4.370.0050.02014.19
5.4.360.0040.02314.06
5.4.350.0050.02114.13
5.4.340.0090.02214.18
5.4.330.0040.00811.46
5.4.320.0080.02713.98
5.4.310.0050.03114.20
5.4.300.0080.01614.05
5.4.290.0090.02614.01
5.4.280.0120.01514.18
5.4.270.0080.02614.16
5.4.260.0050.01914.20
5.4.250.0080.01314.10
5.4.240.0050.01714.20
5.4.230.0080.01713.95
5.4.220.0070.02713.93
5.4.210.0080.01713.99
5.4.200.0100.02714.06
5.4.190.0060.02914.07
5.4.180.0070.02814.05
5.4.170.0030.02114.07
5.4.160.0080.02614.20
5.4.150.0060.02414.03
5.4.140.0090.02513.12
5.4.130.0040.02913.22
5.4.120.0060.02613.22
5.4.110.0040.01913.32
5.4.100.0050.02313.27
5.4.90.0050.01813.25
5.4.80.0060.02913.25
5.4.70.0090.02213.23
5.4.60.0060.02513.27
5.4.50.0060.01513.22
5.4.40.0080.02613.34
5.4.30.0110.01113.24
5.4.20.0050.02213.23
5.4.10.0060.02613.26
5.4.00.0080.02513.08
5.3.290.0050.02512.60
5.3.280.0030.03112.57
5.3.270.0070.02812.70
5.3.260.0090.02712.63
5.3.250.0050.02012.69
5.3.240.0060.02812.60
5.3.230.0060.01912.71
5.3.220.0060.02612.54
5.3.210.0040.01812.57
5.3.200.0030.02712.61
5.3.190.0040.01912.76
5.3.180.0060.02712.61
5.3.170.0020.03412.74
5.3.160.0060.01912.62
5.3.150.0080.02512.68
5.3.140.0060.01612.67
5.3.130.0050.01712.62
5.3.120.0120.02412.70
5.3.110.0040.02212.77
5.3.100.0040.02812.46
5.3.90.0030.01812.50
5.3.80.0040.01912.46
5.3.70.0040.01612.38
5.3.60.0060.02712.45
5.3.50.0120.02212.48
5.3.40.0110.02312.49
5.3.30.0070.02512.38
5.3.20.0060.02712.22
5.3.10.0070.02212.36
5.3.00.0060.02112.19
5.2.170.0080.02211.42
5.2.160.0070.02211.51
5.2.150.0030.02211.48
5.2.140.0090.03111.52
5.2.130.0000.02911.34
5.2.120.0100.01911.65
5.2.110.0030.03511.47
5.2.100.0080.03211.64
5.2.90.0080.03211.47
5.2.80.0050.02311.47
5.2.70.0030.03311.37
5.2.60.0070.02811.41
5.2.50.0030.02311.47
5.2.40.0040.03411.34
5.2.30.0040.03511.27
5.2.20.0060.03211.32
5.2.10.0060.02211.26
5.2.00.0070.02111.22
5.1.60.0040.02710.37
5.1.50.0030.02110.39
5.1.40.0040.01710.54
5.1.30.0040.01810.67
5.1.20.0030.02410.81
5.1.10.0030.03210.42
5.1.00.0070.01810.40
5.0.50.0070.0139.51
5.0.40.0030.0259.44
5.0.30.0030.0289.40
5.0.20.0050.0229.35
5.0.10.0040.0239.33
5.0.00.0030.0339.33
4.4.90.0030.0179.30
4.4.80.0010.0139.30
4.4.70.0040.0159.30
4.4.60.0000.0179.30
4.4.50.0020.0139.30
4.4.40.0020.0189.30
4.4.30.0040.0189.30
4.4.20.0020.0099.30
4.4.10.0000.0219.30
4.4.00.0020.0289.30
4.3.110.0020.0179.30
4.3.100.0040.0139.30
4.3.90.0020.0109.30
4.3.80.0000.0279.30
4.3.70.0030.0199.30
4.3.60.0030.0149.30
4.3.50.0050.0159.30
4.3.40.0000.0289.30
4.3.30.0000.0199.30
4.3.20.0030.0179.30
4.3.10.0010.0139.30
4.3.00.0000.0129.30

preferences:
40.02 ms | 401 KiB | 5 Q