3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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'))); }
Output for 5.3.0 - 7.1.0
Warning: require_once(/in/lib/path.php): failed to open stream: No such file or directory in /in/h22mG on line 21 Fatal error: require_once(): Failed opening required '/in/lib/path.php' (include_path='.:') in /in/h22mG on line 21
Process exited with code 255.
Output for 5.0.0 - 5.2.17
PHP version >=5.3.0 needed!
Output for 4.4.2 - 4.4.9
<br /> <b>Parse error</b>: syntax error, unexpected ')', expecting '(' in <b>/in/h22mG</b> on line <b>69</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
<br /> <b>Parse error</b>: parse error, unexpected ')', expecting '(' in <b>/in/h22mG</b> on line <b>69</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error, expecting `'('' in <b>/in/h22mG</b> on line <b>69</b><br />
Process exited with code 255.