3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * 接收并保存由机具运营中心发回的有关广告播放的信息 * ============================================================================ * * 版权所有 2014 乐透通(福州)网络科技有限公司,并保留所有权利。 * 网站地址: http://www.lotto-pass.net; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ * $Author: clin $ * $Id: trans_rec_machine.php 17217 2011-01-19 06:29:08Z clin $ */ define('IN_ECS', true); // echo "<p>ROOT_PATH:".ROOT_PATH; $current_path = dirname(__FILE__); $base_path = substr($current_path, 0, strlen($current_path) - strlen("/webservice")); require_once($base_path . '/includes/init.php'); require(ROOT_PATH . 'includes/cls_json.php'); require_once (ROOT_PATH . 'includes/utilities/dbutilities.php'); require_once (ROOT_PATH . 'includes/webservice/webserviceutilities.php'); $key_names = setAcceptableArgs(); $check_keys = setCheckEmptyKeys(); $recordsTobeSaved = getRequiredArguments($_POST,$key_names); $table_name = "play_log"; if (!is_record_empty($recordsTobeSaved, $check_keys)) { $db_response = insertRecord($recordsTobeSaved, $table_name); // Insert record $recordsTobeSaved['status'] = 1; } header("Expires: date('Y-m-d H:i:s')"); echo getArrayToXML($recordsTobeSaved); function setAcceptableArgs() { //echo "<p>In setAcceptableArgs: "; $acceptable_args = array( "DevSn", "StartTime", "Screen", "File", "Status" ); return $acceptable_args; } function setCheckEmptyKeys() { $non_empty_args = array( "DevSn" ); return $non_empty_args; } ?>
Output for 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: require_once(): open_basedir restriction in effect. File(/includes/init.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/cVTdr on line 21 Warning: require_once(/includes/init.php): Failed to open stream: Operation not permitted in /in/cVTdr on line 21 Fatal error: Uncaught Error: Failed opening required '/includes/init.php' (include_path='.:') in /in/cVTdr:21 Stack trace: #0 {main} thrown in /in/cVTdr on line 21
Process exited with code 255.
Output for 8.0.0 - 8.0.13
Warning: require_once(/includes/init.php): Failed to open stream: No such file or directory in /in/cVTdr on line 21 Fatal error: Uncaught Error: Failed opening required '/includes/init.php' (include_path='.:') in /in/cVTdr:21 Stack trace: #0 {main} thrown in /in/cVTdr on line 21
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, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.25, 7.4.33
Warning: require_once(/includes/init.php): failed to open stream: No such file or directory in /in/cVTdr on line 21 Fatal error: require_once(): Failed opening required '/includes/init.php' (include_path='.:') in /in/cVTdr on line 21
Process exited with code 255.
Output for 7.4.26 - 7.4.32
Warning: require_once(): open_basedir restriction in effect. File(/includes/init.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/cVTdr on line 21 Warning: require_once(/includes/init.php): failed to open stream: Operation not permitted in /in/cVTdr on line 21 Fatal error: require_once(): Failed opening required '/includes/init.php' (include_path='.:') in /in/cVTdr on line 21
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
<br /> <b>Warning</b>: require_once(/includes/init.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>/in/cVTdr</b> on line <b>21</b><br /> <br /> <b>Fatal error</b>: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/init.php' (include_path='.:') in <b>/in/cVTdr</b> on line <b>21</b><br />
Process exited with code 255.
Output for 4.4.3 - 4.4.9, 5.0.0 - 5.0.5
<br /> <b>Warning</b>: main(/includes/init.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/cVTdr</b> on line <b>21</b><br /> <br /> <b>Fatal error</b>: main() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/init.php' (include_path='.:') in <b>/in/cVTdr</b> on line <b>21</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.2
<br /> <b>Warning</b>: main(/includes/init.php): failed to open stream: No such file or directory in <b>/in/cVTdr</b> on line <b>21</b><br /> <br /> <b>Fatal error</b>: main(): Failed opening required '/includes/init.php' (include_path='.:') in <b>/in/cVTdr</b> on line <b>21</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: main(/includes/init.php) [<a href='http://www.php.net/function.main'>function.main</a>]: failed to create stream: No such file or directory in <b>/in/cVTdr</b> on line <b>21</b><br /> <br /> <b>Fatal error</b>: main() [<a href='http://www.php.net/function.main'>function.main</a>]: Failed opening required '/includes/init.php' (include_path='.:') in <b>/in/cVTdr</b> on line <b>21</b><br />

preferences:
338.41 ms | 402 KiB | 468 Q