3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_extensions(".php"); spl_autoload_register(); require_once 'config.php'; $driver = Handy\Core\Config\ConfigHelper::get('CACHE_DRIVER'); $cache = new Handy\Core\Cache\CacheDriver(Handy\Core\Config\ConfigHelper::get('CACHE_DRIVER')); Handy\Core\ObjectStorage\Storage::saveObject('cache', $cache); if (Handy\Core\Config\ConfigHelper::get('ACTIVE_RECORD_STATUS') == true) { require_once 'ActiveRecord/ActiveRecord.php'; ActiveRecord\Config::initialize(function ($config) { $config->set_model_directory('Handy/Modules/Model/'); $config->set_connections(array('development' => Handy\Core\Config\ConfigHelper::get('ACTIVE_RECORD_DRIVER_DEVELOPMENT'), 'production' => Handy\Core\Config\ConfigHelper::get('ACTIVE_RECORD_DRIVER_PRODUCTION'))); $config->set_default_connection(Handy\Core\Config\ConfigHelper::get('DEVELOPMENT_ENV')); }); } if(Handy\Core\Config\ConfigHelper::get('TWIG_STATUS') == true) { require_once 'Twig/Autoloader.php'; Twig_Autoloader::register(); $loader = new Twig_Loader_Filesystem('Handy/Modules/View'); $twig = new Twig_Environment($loader, array( 'cache' => Handy\Core\Config\ConfigHelper::get('DIRECTORY_CACHE').'/template/', 'debug' => ((Handy\Core\Config\ConfigHelper::get('DEVELOPMENT_ENV') == 'development') ? true : false) ) ); Handy\Core\ObjectStorage\Storage::saveObject('twig', $twig); } require_once 'routes.php';
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Warning: require_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/HHCkh on line 4 Warning: require_once(config.php): Failed to open stream: Operation not permitted in /in/HHCkh on line 4 Fatal error: Uncaught Error: Failed opening required 'config.php' (include_path='.:') in /in/HHCkh:4 Stack trace: #0 {main} thrown in /in/HHCkh on line 4
Process exited with code 255.
Output for 8.0.13
Warning: require_once(config.php): Failed to open stream: No such file or directory in /in/HHCkh on line 4 Fatal error: Uncaught Error: Failed opening required 'config.php' (include_path='.:') in /in/HHCkh:4 Stack trace: #0 {main} thrown in /in/HHCkh on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.3.32 - 7.3.33, 7.4.26, 7.4.33
Warning: require_once(config.php): failed to open stream: No such file or directory in /in/HHCkh on line 4 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/HHCkh on line 4
Process exited with code 255.
Output for 7.2.11 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32
Warning: require_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/HHCkh on line 4 Warning: require_once(config.php): failed to open stream: Operation not permitted in /in/HHCkh on line 4 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/HHCkh on line 4
Process exited with code 255.
Output for 7.1.20, 7.2.6 - 7.2.8
Warning: require_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in) in /in/HHCkh on line 4 Warning: require_once(config.php): failed to open stream: Operation not permitted in /in/HHCkh on line 4 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/HHCkh on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/HHCkh on line 5 Parse error: syntax error, unexpected T_STRING in /in/HHCkh on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/HHCkh on line 5 Parse error: parse error, unexpected T_STRING in /in/HHCkh on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/HHCkh on line 5 Parse error: parse error in /in/HHCkh on line 5
Process exited with code 255.

preferences:
215.15 ms | 401 KiB | 349 Q