3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); ini_set('display_startup_errors', 1); ini_set('display_errors', 1); ini_set('memory_limit', '2024M'); date_default_timezone_set('America/New_York'); define('TEST_MODE', true); define('ROOT_PATH', isset(getenv('WORKSPACE')) ? getenv('WORKSPACE') : dirname ( __FILE__ ) .'./../../'); define('APPLICATION_PATH', ROOT_PATH.'/src/main/php/webapp/application'); define('PUBLIC_PATH', ROOT_PATH.'/src/main/php/webapp/public'); define('EXCEPTION_PATH', ROOT_PATH.'/src/main/php/webapp/application/exceptions'); define('APPLICATION_ENV', 'development'); define('LIBRARY_PATH', ROOT_PATH.'/src/main/php/webapp/library'); define('TESTS_PATH', ROOT_PATH.'/src/test'); define('MEDIA_DIR', 'test/dir'); define('DEPENDENCY_LIBRARY_PATH', ROOT_PATH.'/target/dependencies/library'); define('APPLICATION_WEBAPP', false); define('ZEND_LIB_PATH', isset(getenv('ZEND_LIB_PATH')) ? getenv('ZEND_LIB_PATH') : 'C:/Program Files (x86)/ZendServer/share/ZendFramework/library'); define('HELPERS_PATH', ROOT_PATH.'/src/main/php/webapp/application/views/helpers'); $_SERVER['SERVER_NAME'] = 'http://localhost'; $includePaths = array(LIBRARY_PATH,EXCEPTION_PATH, HELPERS_PATH, ZEND_LIB_PATH, DEPENDENCY_LIBRARY_PATH, get_include_path()); set_include_path(implode(PATH_SEPARATOR, $includePaths)); require_once 'Zend/Application.php'; require_once 'Zend/Loader/Autoloader.php'; $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->registerNamespace('Passport_'); $autoloader->registerNamespace('GBTS_'); $autoloader->registerNamespace('WDPRO_'); $arr = array('namespace' => 'Passport', 'basePath' => APPLICATION_PATH); $autoloader = new Zend_Application_Module_Autoloader($arr); $autoloader->addResourceType('exceptions', 'exceptions/', 'Exception'); Zend_Session::$_unitTestEnabled = true; Zend_Session::start();
Output for 7.0.0
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /in/MrSlC on line 9
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in /in/MrSlC on line 9
Process exited with code 255.

preferences:
175.16 ms | 1395 KiB | 24 Q