3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
#!/usr/bin/php -qd open_basedir=/ <?php /** * @filesource getebsschedulelog.php * @Description 拉取PO状态 * @Encoding:UTF-8 * @Created on:2014-2-15 21:45:43 by charlie.chai@vipshop.com */ /** ------------------ 应用初始化 ------------------ * */ defined('BASE_PATH') || define('BASE_PATH', dirname(__FILE__) . '/../..'); include BASE_PATH . '/init/init.php'; include CORE_PATH_NEW . '/ArgsCheck.php'; include CORE_PATH_NEW . '/Redis.php'; include CORE_PATH_NEW . '/MyAPI.php'; include CORE_PATH_NEW . '/Tools.php'; include APPLICATION_PATH . '/Loger.php'; include APPLICATION_PATH . '/schedule/pullPOStatusManager.php'; ob_start(); $logArray = array(); $logArray['scriptName'] = $_SERVER['PHP_SELF']; $logArray['scriptNameCn'] = '拉取EBS商品清单审核(getpostatus.php)'; $logArray['actionName'] = '任务开始'; $logArray['content'] = ''; App_Loger::addLoger($logArray); set_time_limit(cronWatchConf::$watchList['getpostatus.php']); $cacheKey = 'getpostatus.php'; $is_run = memRedis::slaveGet($cacheKey); if (!empty($is_run) && appConf::$isDebug == false) { echo "已有程序在运行,请稍等!\n"; } else { $pid = getmypid() . '|' . time(); memRedis::masterSet($cacheKey, $pid); $startTime = microtime(true); echo "任务开始\n"; echo "...\n"; $uploadGoodsNum = 100; schedule_pullPOStatusManager::updatePOStatus($uploadGoodsNum); $excu_time = microtime(true) - $startTime; echo '任务结束!执行时间:' . $excu_time . "\n"; memRedis::masterDel($cacheKey); $logArray['timeLenth'] = $excu_time . 's'; $logArray['actionName'] = '任务结束!'; } $pageCache = ob_get_contents(); ob_end_clean(); $logArray['content'] = $pageCache; App_Loger::addLoger($logArray); echo $pageCache; ?>
Output for 7.0.0 - 7.1.0
Warning: include(/in/../../init/init.php): failed to open stream: No such file or directory in /in/H7lgn on line 11 Warning: include(): Failed opening '/in/../../init/init.php' for inclusion (include_path='.:') in /in/H7lgn on line 11 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 12 Warning: include(CORE_PATH_NEW/ArgsCheck.php): failed to open stream: No such file or directory in /in/H7lgn on line 12 Warning: include(): Failed opening 'CORE_PATH_NEW/ArgsCheck.php' for inclusion (include_path='.:') in /in/H7lgn on line 12 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 13 Warning: include(CORE_PATH_NEW/Redis.php): failed to open stream: No such file or directory in /in/H7lgn on line 13 Warning: include(): Failed opening 'CORE_PATH_NEW/Redis.php' for inclusion (include_path='.:') in /in/H7lgn on line 13 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 14 Warning: include(CORE_PATH_NEW/MyAPI.php): failed to open stream: No such file or directory in /in/H7lgn on line 14 Warning: include(): Failed opening 'CORE_PATH_NEW/MyAPI.php' for inclusion (include_path='.:') in /in/H7lgn on line 14 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 15 Warning: include(CORE_PATH_NEW/Tools.php): failed to open stream: No such file or directory in /in/H7lgn on line 15 Warning: include(): Failed opening 'CORE_PATH_NEW/Tools.php' for inclusion (include_path='.:') in /in/H7lgn on line 15 Notice: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' in /in/H7lgn on line 16 Warning: include(APPLICATION_PATH/Loger.php): failed to open stream: No such file or directory in /in/H7lgn on line 16 Warning: include(): Failed opening 'APPLICATION_PATH/Loger.php' for inclusion (include_path='.:') in /in/H7lgn on line 16 Notice: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' in /in/H7lgn on line 17 Warning: include(APPLICATION_PATH/schedule/pullPOStatusManager.php): failed to open stream: No such file or directory in /in/H7lgn on line 17 Warning: include(): Failed opening 'APPLICATION_PATH/schedule/pullPOStatusManager.php' for inclusion (include_path='.:') in /in/H7lgn on line 17 Fatal error: Uncaught Error: Class 'App_Loger' not found in /in/H7lgn:25 Stack trace: #0 {main} thrown in /in/H7lgn on line 25
Process exited with code 255.
Output for 5.1.0 - 5.6.28
Warning: include(/in/../../init/init.php): failed to open stream: No such file or directory in /in/H7lgn on line 11 Warning: include(): Failed opening '/in/../../init/init.php' for inclusion (include_path='.:') in /in/H7lgn on line 11 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 12 Warning: include(CORE_PATH_NEW/ArgsCheck.php): failed to open stream: No such file or directory in /in/H7lgn on line 12 Warning: include(): Failed opening 'CORE_PATH_NEW/ArgsCheck.php' for inclusion (include_path='.:') in /in/H7lgn on line 12 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 13 Warning: include(CORE_PATH_NEW/Redis.php): failed to open stream: No such file or directory in /in/H7lgn on line 13 Warning: include(): Failed opening 'CORE_PATH_NEW/Redis.php' for inclusion (include_path='.:') in /in/H7lgn on line 13 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 14 Warning: include(CORE_PATH_NEW/MyAPI.php): failed to open stream: No such file or directory in /in/H7lgn on line 14 Warning: include(): Failed opening 'CORE_PATH_NEW/MyAPI.php' for inclusion (include_path='.:') in /in/H7lgn on line 14 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 15 Warning: include(CORE_PATH_NEW/Tools.php): failed to open stream: No such file or directory in /in/H7lgn on line 15 Warning: include(): Failed opening 'CORE_PATH_NEW/Tools.php' for inclusion (include_path='.:') in /in/H7lgn on line 15 Notice: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' in /in/H7lgn on line 16 Warning: include(APPLICATION_PATH/Loger.php): failed to open stream: No such file or directory in /in/H7lgn on line 16 Warning: include(): Failed opening 'APPLICATION_PATH/Loger.php' for inclusion (include_path='.:') in /in/H7lgn on line 16 Notice: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' in /in/H7lgn on line 17 Warning: include(APPLICATION_PATH/schedule/pullPOStatusManager.php): failed to open stream: No such file or directory in /in/H7lgn on line 17 Warning: include(): Failed opening 'APPLICATION_PATH/schedule/pullPOStatusManager.php' for inclusion (include_path='.:') in /in/H7lgn on line 17 Fatal error: Class 'App_Loger' not found in /in/H7lgn on line 25
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: main(/in/../../init/init.php): failed to open stream: No such file or directory in /in/H7lgn on line 11 Warning: main(): Failed opening '/in/../../init/init.php' for inclusion (include_path='.:') in /in/H7lgn on line 11 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 12 Warning: main(CORE_PATH_NEW/ArgsCheck.php): failed to open stream: No such file or directory in /in/H7lgn on line 12 Warning: main(): Failed opening 'CORE_PATH_NEW/ArgsCheck.php' for inclusion (include_path='.:') in /in/H7lgn on line 12 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 13 Warning: main(CORE_PATH_NEW/Redis.php): failed to open stream: No such file or directory in /in/H7lgn on line 13 Warning: main(): Failed opening 'CORE_PATH_NEW/Redis.php' for inclusion (include_path='.:') in /in/H7lgn on line 13 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 14 Warning: main(CORE_PATH_NEW/MyAPI.php): failed to open stream: No such file or directory in /in/H7lgn on line 14 Warning: main(): Failed opening 'CORE_PATH_NEW/MyAPI.php' for inclusion (include_path='.:') in /in/H7lgn on line 14 Notice: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' in /in/H7lgn on line 15 Warning: main(CORE_PATH_NEW/Tools.php): failed to open stream: No such file or directory in /in/H7lgn on line 15 Warning: main(): Failed opening 'CORE_PATH_NEW/Tools.php' for inclusion (include_path='.:') in /in/H7lgn on line 15 Notice: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' in /in/H7lgn on line 16 Warning: main(APPLICATION_PATH/Loger.php): failed to open stream: No such file or directory in /in/H7lgn on line 16 Warning: main(): Failed opening 'APPLICATION_PATH/Loger.php' for inclusion (include_path='.:') in /in/H7lgn on line 16 Notice: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' in /in/H7lgn on line 17 Warning: main(APPLICATION_PATH/schedule/pullPOStatusManager.php): failed to open stream: No such file or directory in /in/H7lgn on line 17 Warning: main(): Failed opening 'APPLICATION_PATH/schedule/pullPOStatusManager.php' for inclusion (include_path='.:') in /in/H7lgn on line 17 Fatal error: Class 'App_Loger' not found in /in/H7lgn on line 25
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/H7lgn on line 27
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/H7lgn on line 27
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/H7lgn on line 27
Process exited with code 255.