3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /*********************/ /* */ /* Dezend for PHP5 */ /* NWS */ /* Nulled.WS */ /* */ /*********************/ function handler_error( $_obfuscate_DT0oEAY7HictFBYpBw0lMw4tPjAIBgE�, $_obfuscate_DTwjBSELCy4UH1s7EQkPDR9AFQo2AxE�, $_obfuscate_DVsFLT4HXCQpGxIGBw8IGA8JPCksEAE�, $_obfuscate_DSIPEgYTGw0jNxUPPDU5OAc9GRQOExE� ) { if ( E_RECOVERABLE_ERROR === $_obfuscate_DT0oEAY7HictFBYpBw0lMw4tPjAIBgE� ) { handler_exception( new ErrorException( $_obfuscate_DTwjBSELCy4UH1s7EQkPDR9AFQo2AxE�, $_obfuscate_DT0oEAY7HictFBYpBw0lMw4tPjAIBgE�, 0, $_obfuscate_DVsFLT4HXCQpGxIGBw8IGA8JPCksEAE�, $_obfuscate_DSIPEgYTGw0jNxUPPDU5OAc9GRQOExE� ) ); } else { error_log( $_obfuscate_DT0oEAY7HictFBYpBw0lMw4tPjAIBgE�." ".$_obfuscate_DTwjBSELCy4UH1s7EQkPDR9AFQo2AxE�." ".$_obfuscate_DVsFLT4HXCQpGxIGBw8IGA8JPCksEAE�." ".$_obfuscate_DSIPEgYTGw0jNxUPPDU5OAc9GRQOExE� ); } return false; } function handler_exception( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE� ) { if ( APPLICATION_ENV == "testing" ) { print $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getMessage( ).PHP_EOL; } else { error_log( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getMessage( ) ); if ( defined( "BB_MODE_API" ) || defined( "BB_MODE_CRON" ) ) { $_obfuscate_DRwUXCcCEiMDDiEDJCgmXB1ALS8LjI� = $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getCode( ) ? $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getCode( ) : 9998; $_obfuscate_DSEjOygRHQ04JygLNTEUPQYlARcIPyI� = array( "result" => NULL, "error" => array( "message" => $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getMessage( ), "code" => $_obfuscate_DRwUXCcCEiMDDiEDJCgmXB1ALS8LjI� ) ); print json_encode( $_obfuscate_DSEjOygRHQ04JygLNTEUPQYlARcIPyI� ); return false; } $_obfuscate_DTMFCyc8Mz0JCCsLTcxIzUQAzkhEAE� = "<!DOCTYPE html>\n <html lang=en>\n <meta charset=utf-8>\n <title>Error</title>\n <style>\n *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0} em{font-weight:bold}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}pre{ width: 100%; overflow:auto; }\n </style>\n <a href=//www.boxbilling.com/ target='_blank'><img src='https://sites.google.com/site/boxbilling/_/rsrc/1308483006796/home/logo_boxbilling.png' alt='BoxBilling' style='height:60px'></a>\n "; $_obfuscate_DTMFCyc8Mz0JCCsLTcxIzUQAzkhEAE� = str_replace( PHP_EOL, "", $_obfuscate_DTMFCyc8Mz0JCCsLTcxIzUQAzkhEAE� ); print $_obfuscate_DTMFCyc8Mz0JCCsLTcxIzUQAzkhEAE�; if ( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getCode( ) ) { print sprintf( "<p>Code: <em>%s</em></p>", $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getCode( ) ); } print sprintf( "<p>%s</p>", $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getMessage( ) ); print sprintf( "<p><a href=\"http://www.boxbilling.com/docs/search.html?q=%s\" target=\"_blank\">Look for detailed error explanation</a></p>", urlencode( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�->getMessage( ) ) ); } } function handler_shutdown( ) { $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE� = error_get_last( ); if ( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�['type'] == 1 ) { $_obfuscate_DTMwCxcRBSoXFRIBCUA_FAENFwsZKjI� = $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�['message']." in ".$_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�['file']."[".$_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�['line']."]"; handler_exception( new Exception( $_obfuscate_DTMwCxcRBSoXFRIBCUA_FAENFwsZKjI� ) ); } if ( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�['type'] == 64 ) { handler_exception( new Exception( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�['message'] ) ); } if ( is_array( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE� ) && isset( $ )?74&/+7*>)$+['message'] ) ) { error_log( $_obfuscate_DRgSESkNzQmGC8rNyo_KQEcJAISKwE�['message'] ); } } function handler_autoloader( $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE� ) { if ( strpos( $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE�, "Box_Mod_" ) !== false ) { $_obfuscate_DTMZEBQrIiw9BwMBAj0ZEgQLPFsiHyI� = substr( $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE�, strlen( "Box_Mod_" ) ); $_obfuscate_DSwQWyEhBA8ZXBs5JgsoOw8DT4JITI� = strtolower( substr( $_obfuscate_DTMZEBQrIiw9BwMBAj0ZEgQLPFsiHyI�, 0, strpos( $_obfuscate_DTMZEBQrIiw9BwMBAj0ZEgQLPFsiHyI�, "_" ) ) ); $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE� = substr( $_obfuscate_DTMZEBQrIiw9BwMBAj0ZEgQLPFsiHyI�, strpos( $_obfuscate_DTMZEBQrIiw9BwMBAj0ZEgQLPFsiHyI�, "_" ) + 1 ); require_once( BB_PATH_MODS.DIRECTORY_SEPARATOR."mod_".$_obfuscate_DSwQWyEhBA8ZXBs5JgsoOw8DT4JITI�.DIRECTORY_SEPARATOR.$_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE�.".php" ); } else { if ( strpos( $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE�, "\\" ) !== false ) { $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE� = str_replace( "\\", DIRECTORY_SEPARATOR, $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE� ); } if ( strpos( $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE�, "_" ) !== false ) { $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE� = str_replace( "_", DIRECTORY_SEPARATOR, $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE� ); } require_once( $_obfuscate_DRAPJisoGTw9OT8dGR8ULAM9MhIdKAE�.".php" ); } } function bb_di_twig( $_obfuscate_DQETIhocASIcGj05PwQ0ElxcFxgBIjI� ) { $_obfuscate_DVs4Iwo1KRgBBh4dDRcTCR0hCg08LTI� = array( "debug" => BB_DEBUG, "auto_reload" => BB_DEBUG, "cache" => BB_PATH_CACHE ); $_obfuscate_DTwzJxMvBQ8TEiwBBgobFRY3CB0qHCI� = new Twig_Loader_String( ); $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI� = new Twig_Environment( $_obfuscate_DTwzJxMvBQ8TEiwBBgobFRY3CB0qHCI�, $_obfuscate_DVs4Iwo1KRgBBh4dDRcTCR0hCg08LTI� ); $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�->addExtension( new Twig_Extension_Optimizer( ) ); $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�->addExtension( new Twig_Extensions_Extension_I18n( ) ); $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�->addExtension( new Twig_Extensions_Extension_Debug( ) ); $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�->addExtension( new Twig_Extensions_Extension_BB( ) ); $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�->getExtension( "core" )->setDateFormat( BB_DATE_FORMAT ); $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�->getExtension( "core" )->setTimezone( date_default_timezone_get( ) ); if ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && $_SERVER['HTTP_X_REQUESTED_WITH'] == "XMLHttpRequest" ) { $_GET['ajax'] = TRUE; } $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�->addGlobal( "request", $_GET ); $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�->addGlobal( "guest", $_obfuscate_DQETIhocASIcGj05PwQ0ElxcFxgBIjI�['auth']->getApiGuest( ) ); return $_obfuscate_DSUkCB4BWxsbKwsrHDQ3PAo_Aw0eCzI�; } if ( function_exists( "ioncube_file_is_encoded" ) && ioncube_file_is_encoded( ) ) { define( "APPLICATION_ENV", "production" ); } if ( !defined( "APPLICATION_ENV" ) ) { } define( "BB_PATH_ROOT", dirname( __FILE__ ) ); define( "BB_PATH_LIBRARY", BB_PATH_ROOT."/bb-library" ); define( "BB_PATH_THEMES", BB_PATH_ROOT."/bb-themes" ); define( "BB_PATH_MODS", BB_PATH_ROOT."/bb-modules" ); define( "BB_PATH_LANGS", BB_PATH_ROOT."/bb-locale" ); define( "BB_PATH_UPLOADS", BB_PATH_ROOT."/bb-uploads" ); set_include_path( implode( PATH_SEPARATOR, array( BB_PATH_LIBRARY, get_include_path( ) ) ) ); set_exception_handler( "handler_exception" ); set_error_handler( "handler_error" ); spl_autoload_register( "handler_autoloader" ); register_shutdown_function( "handler_shutdown" ); $configPath = BB_PATH_ROOT."/bb-config.php"; if ( isset( $_SERVER['HTTP_HOST'] ) && $_SERVER['HTTP_HOST'] || php_sapi_name( ) == "cli" && isset( $argv[1] ) ) { if ( php_sapi_name( ) == "cli" ) { $host = $argv[1]; } else { $host = $_SERVER['HTTP_HOST']; } $predictConfigPath = BB_PATH_ROOT."/bb-config-".$host.".php"; if ( file_exists( $predictConfigPath ) ) { $configPath = $predictConfigPath; } } if ( !file_exists( $configPath ) || 0 == filesize( $configPath ) ) { @file_put_contents( @$configPath, "" ); $base_url = "http://".$_SERVER['HTTP_HOST']; $base_url .= preg_replace( "@/+$@", "", dirname( $_SERVER['SCRIPT_NAME'] ) )."/"; $url = $base_url."install/index.php"; $configFile = pathinfo( $configPath, PATHINFO_BASENAME ); $msg = sprintf( "There doesn't seem to be a <em>{$configFile}</em> file or bb-config.php file does not contain required configuration parameters. I need this before we can get started. Need more help? <a target='_blank' href='http://www.boxbilling.com/docs/search.html?q=install'>We got it</a>. You can create a <em>{$configFile}</em> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%s' class='button'>Continue with BoxBilling installation</a>", $url ); throw new Exception( $msg, 101 ); } require_once( $configPath ); define( "BB_PATH_CACHE", BB_PATH_DATA."/cache" ); define( "BB_PATH_LOG", BB_PATH_DATA."/log" ); define( "BB_SSL", substr( BB_URL, 0, 5 ) === "https" ); if ( BB_SEF_URLS ) { define( "BB_URL_API", BB_URL."api/" ); } else { define( "BB_URL_API", BB_URL."index.php/api/" ); } if ( !defined( "BB_DATE_FORMAT" ) ) { define( "BB_DATE_FORMAT", "l, d F Y" ); } if ( !defined( "BB_LOCALE_DATE_FORMAT" ) ) { define( "BB_LOCALE_DATE_FORMAT", "%A, %d %B %G" ); } if ( !defined( "BB_LOCALE_TIME_FORMAT" ) ) { define( "BB_LOCALE_TIME_FORMAT", " %T" ); } if ( BB_DEBUG ) { error_reporting( E_ALL ); } else { error_reporting( E_RECOVERABLE_ERROR ); } ini_set( "display_errors", "0" ); ini_set( "display_startup_errors", "0" ); ini_set( "log_errors", "1" ); ini_set( "html_errors", FALSE ); ini_set( "error_log", BB_PATH_LOG."/php_error.log" ); $lang = isset( $_COOKIE ) && isset( $_COOKIE['BBLANG'] ) && !empty( $_COOKIE['BBLANG'] ) ? $_COOKIE['BBLANG'] : BB_LOCALE; $domain = defined( "BB_ADMIN" ) ? "admin" : "messages"; $codeset = "UTF-8"; if ( !function_exists( "gettext" ) ) { require_once( BB_PATH_LIBRARY."/php-gettext/gettext.inc" ); T_setlocale( LC_MESSAGES, $lang.".".$codeset ); T_setlocale( LC_TIME, $lang.".".$codeset ); T_bindtextdomain( $domain, BB_PATH_LANGS ); T_bind_textdomain_codeset( $domain, $codeset ); T_textdomain( $domain ); } else { @putenv( @"LANG=".@$lang.".".@$codeset ); @putenv( @"LANGUAGE=".@$lang.".".@$codeset ); if ( !defined( "LC_MESSAGES" ) ) { define( "LC_MESSAGES", 5 ); } if ( !defined( "LC_TIME" ) ) { define( "LC_TIME", 2 ); } setlocale( LC_MESSAGES, $lang.".".$codeset ); setlocale( LC_TIME, $lang.".".$codeset ); bindtextdomain( $domain, BB_PATH_LANGS ); if ( function_exists( "bind_textdomain_codeset" ) ) { bind_textdomain_codeset( $domain, $codeset ); } textdomain( $domain ); function __( $_obfuscate_DTYYQDdcMj4kWzsHFCMvCAQwGyU5AjI�, $_obfuscate_DQ8BJTQ7GgQpKFsnNSEXCTEXETkhXCI� = NULL ) { if ( empty( $_obfuscate_DTYYQDdcMj4kWzsHFCMvCAQwGyU5AjI� ) ) { return null; } $_obfuscate_DTccOzwjJikLFTAqIRQhKBdcLTsxPQE� = gettext( $_obfuscate_DTYYQDdcMj4kWzsHFCMvCAQwGyU5AjI� ); return empty( $_obfuscate_DQ8BJTQ7GgQpKFsnNSEXCTEXETkhXCI� ) ? $_obfuscate_DTccOzwjJikLFTAqIRQhKBdcLTsxPQE� : strtr( $_obfuscate_DTccOzwjJikLFTAqIRQhKBdcLTsxPQE�, $_obfuscate_DQ8BJTQ7GgQpKFsnNSEXCTEXETkhXCI� ); } } if ( function_exists( "get_magic_quotes_gpc" ) && get_magic_quotes_gpc( ) ) { $quotes_sybase = strtolower( ini_get( "magic_quotes_sybase" ) ); $unescape_function = empty( $quotes_sybase ) || $quotes_sybase === "off" ? "stripslashes(\$value)" : "str_replace(\"''\",\"'\",\$value)"; $stripslashes_deep = create_function( "&\$value, \$fn", "\n if (is_string(\$value)) {\n \$value = ".$unescape_function.";\n } else if (is_array(\$value)) {\n foreach (\$value as &\$v) \$fn(\$v, \$fn);\n }\n " ); $stripslashes_deep( $_POST, $stripslashes_deep ); $stripslashes_deep( $_GET, $stripslashes_deep ); $stripslashes_deep( $_COOKIE, $stripslashes_deep ); $stripslashes_deep( $_REQUEST, $stripslashes_deep ); } $di = new Box_Di( ); $di['db'] = $di->share( create_function( "\$di", "return new Box_Db(\$di);" ) ); $di['session'] = $di->share( create_function( "\$di", "return new Box_Session(\$di);" ) ); $di['request'] = $di->share( create_function( "\$di", "return new Box_Request(\$di);" ) ); $di['cache'] = $di->share( create_function( "\$di", "return new FileCache();" ) ); $di['auth'] = $di->share( create_function( "\$di", "return new Box_Authorization(\$di);" ) ); $di['twig'] = $di->share( create_function( "\$di", "return bb_di_twig(\$di);" ) ); ( ); ?>
Output for 5.4.0 - 5.4.23
Warning: Unexpected character in input: '' (ASCII=24) state=0 in /in/9MgnH on line 64 Warning: Unexpected character in input: '' (ASCII=18) state=0 in /in/9MgnH on line 64 Warning: Unexpected character in input: '' (ASCII=17) state=0 in /in/9MgnH on line 64 Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) or '$' in /in/9MgnH on line 64
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Warning: Unexpected character in input: '' (ASCII=24) state=0 in /in/9MgnH on line 64 Warning: Unexpected character in input: '' (ASCII=18) state=0 in /in/9MgnH on line 64 Warning: Unexpected character in input: '' (ASCII=17) state=0 in /in/9MgnH on line 64 Parse error: syntax error, unexpected ')', expecting T_VARIABLE or '$' in /in/9MgnH on line 64
Process exited with code 255.