3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
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 hhvm-3.10.0 - 3.12.0
Fatal error: File not found: config.php in /in/HHCkh on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.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.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.