3v4l.org

run code in 300+ PHP versions simultaneously
#!/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 8.0.0 - 8.0.12
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 Fatal error: Uncaught Error: Undefined constant "CORE_PATH_NEW" in /in/H7lgn:12 Stack trace: #0 {main} thrown in /in/H7lgn on line 12
Process exited with code 255.
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25
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 Warning: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' (this will throw an Error in a future version of PHP) 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 Warning: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' (this will throw an Error in a future version of PHP) 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 Warning: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' (this will throw an Error in a future version of PHP) 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 Warning: Use of undefined constant CORE_PATH_NEW - assumed 'CORE_PATH_NEW' (this will throw an Error in a future version of PHP) 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 Warning: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' (this will throw an Error in a future version of PHP) 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 Warning: Use of undefined constant APPLICATION_PATH - assumed 'APPLICATION_PATH' (this will throw an Error in a future version of PHP) 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 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
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 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 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 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 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 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 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.2.3 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
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 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 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 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 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 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 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.1.0 - 5.1.6, 5.2.0 - 5.2.2
<br /> <b>Warning</b>: include(/in/../../init/init.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>11</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening '/in/../../init/init.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>11</b><br /> <br /> <b>Warning</b>: include(CORE_PATH_NEW/ArgsCheck.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>12</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'CORE_PATH_NEW/ArgsCheck.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>12</b><br /> <br /> <b>Warning</b>: include(CORE_PATH_NEW/Redis.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>13</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'CORE_PATH_NEW/Redis.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>13</b><br /> <br /> <b>Warning</b>: include(CORE_PATH_NEW/MyAPI.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>14</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'CORE_PATH_NEW/MyAPI.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>14</b><br /> <br /> <b>Warning</b>: include(CORE_PATH_NEW/Tools.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>15</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'CORE_PATH_NEW/Tools.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>15</b><br /> <br /> <b>Warning</b>: include(APPLICATION_PATH/Loger.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>16</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'APPLICATION_PATH/Loger.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>16</b><br /> <br /> <b>Warning</b>: include(APPLICATION_PATH/schedule/pullPOStatusManager.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>17</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'APPLICATION_PATH/schedule/pullPOStatusManager.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>17</b><br /> <br /> <b>Fatal error</b>: Class 'App_Loger' not found in <b>/in/H7lgn</b> on line <b>25</b><br />
Process exited with code 255.
Output for 5.0.0 - 5.0.5
<br /> <b>Warning</b>: main(/in/../../init/init.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>11</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening '/in/../../init/init.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>11</b><br /> <br /> <b>Warning</b>: main(CORE_PATH_NEW/ArgsCheck.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>12</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'CORE_PATH_NEW/ArgsCheck.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>12</b><br /> <br /> <b>Warning</b>: main(CORE_PATH_NEW/Redis.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>13</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'CORE_PATH_NEW/Redis.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>13</b><br /> <br /> <b>Warning</b>: main(CORE_PATH_NEW/MyAPI.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>14</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'CORE_PATH_NEW/MyAPI.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>14</b><br /> <br /> <b>Warning</b>: main(CORE_PATH_NEW/Tools.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>15</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'CORE_PATH_NEW/Tools.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>15</b><br /> <br /> <b>Warning</b>: main(APPLICATION_PATH/Loger.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>16</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'APPLICATION_PATH/Loger.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>16</b><br /> <br /> <b>Warning</b>: main(APPLICATION_PATH/schedule/pullPOStatusManager.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/H7lgn</b> on line <b>17</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'APPLICATION_PATH/schedule/pullPOStatusManager.php' for inclusion (include_path='.:') in <b>/in/H7lgn</b> on line <b>17</b><br /> <br /> <b>Fatal error</b>: Class 'App_Loger' not found in <b>/in/H7lgn</b> on line <b>25</b><br />
Process exited with code 255.
Output for 4.4.2 - 4.4.9
<br /> <b>Parse error</b>: syntax error, unexpected ')', expecting '(' in <b>/in/H7lgn</b> on line <b>27</b><br />
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
<br /> <b>Parse error</b>: parse error, unexpected ')', expecting '(' in <b>/in/H7lgn</b> on line <b>27</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error, expecting `'('' in <b>/in/H7lgn</b> on line <b>27</b><br />
Process exited with code 255.

preferences:
276.99 ms | 401 KiB | 386 Q