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; } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.40.0090.00618.86
8.3.30.0100.00719.13
8.3.20.0060.00320.38
8.3.10.0090.00621.74
8.3.00.0080.00019.26
8.2.170.0120.00322.96
8.2.160.0110.00419.05
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00419.67
8.2.110.0070.00421.09
8.2.100.0090.00317.63
8.2.90.0030.00619.05
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0060.00319.88
8.2.30.0040.00418.14
8.2.20.0050.00217.72
8.2.10.0040.00418.02
8.2.00.0000.00817.84
8.1.270.0000.01020.78
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.88
8.1.230.0120.00018.57
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00620.42
8.1.160.0040.00422.03
8.1.150.0000.00718.94
8.1.140.0070.00017.49
8.1.130.0070.00017.87
8.1.120.0000.00717.48
8.1.110.0000.00817.40
8.1.100.0080.00017.50
8.1.90.0040.00417.45
8.1.80.0000.00717.38
8.1.70.0050.00317.47
8.1.60.0080.00017.70
8.1.50.0040.00417.44
8.1.40.0020.00517.60
8.1.30.0040.00417.71
8.1.20.0080.00017.58
8.1.10.0090.00017.49
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0000.00718.46
8.0.270.0030.00617.28
8.0.260.0030.00317.31
8.0.250.0000.00717.14
8.0.240.0070.00017.17
8.0.230.0030.00317.11
8.0.220.0030.00316.95
8.0.210.0030.00316.99
8.0.200.0030.00317.18
8.0.190.0040.00417.15
8.0.180.0070.00017.13
8.0.170.0040.00417.09
8.0.160.0000.00817.04
8.0.150.0050.00217.03
8.0.140.0040.00416.92
8.0.130.0000.00713.41
8.0.120.0060.00415.21
8.0.110.0030.00715.25
8.0.100.0060.00315.22
8.0.90.0060.00315.26
8.0.80.0060.00815.24
8.0.70.0080.00115.15
8.0.60.0060.00315.27
8.0.50.0050.00415.29
8.0.30.0100.01115.86
8.0.20.0070.00916.10
8.0.10.0040.00615.29
8.0.00.0070.00615.89
7.4.330.0030.00315.09
7.4.320.0060.00016.65
7.4.300.0090.00016.68
7.4.290.0040.00416.44
7.4.280.0070.00016.54
7.4.270.0000.00716.63
7.4.260.0000.00716.53
7.4.250.0020.00514.92
7.4.240.0050.00315.49
7.4.230.0020.00714.90
7.4.220.0070.00714.92
7.4.210.0060.00914.87
7.4.200.0060.00414.97
7.4.190.0090.00313.48
7.4.180.0030.00313.34
7.4.160.0030.00814.99
7.4.150.0090.00315.40
7.4.140.0060.00916.33
7.4.130.0100.00515.36
7.4.120.0060.00915.47
7.4.110.0040.00814.75
7.4.100.0100.00614.90
7.4.90.0090.00514.88
7.4.80.0060.00816.27
7.4.70.0090.00415.07
7.4.60.0080.00514.96
7.4.50.0050.00414.66
7.4.40.0120.00314.75
7.4.30.0080.00814.79
7.4.20.0070.00413.29
7.4.10.0080.00814.19
7.4.00.0100.00514.36
7.3.330.0030.00313.37
7.3.320.0090.00613.52
7.3.310.0060.00214.85
7.3.300.0030.00415.01
7.3.290.0070.00515.76
7.3.280.0080.00715.72
7.3.270.0090.00815.46
7.3.260.0140.00114.92
7.3.250.0120.00515.51
7.3.240.0070.00614.97
7.3.230.0070.00515.02
7.3.220.0060.00213.23
7.3.210.0080.00714.94
7.3.200.0050.00716.33
7.3.190.0070.00714.83
7.3.180.0090.00414.88
7.3.170.0100.00614.81
7.3.160.0060.00815.01
7.3.150.0030.00313.29
7.3.140.0060.00013.22
7.3.130.0030.01014.16
7.3.120.0030.01014.49
7.3.110.0070.00614.20
7.3.100.0040.00714.22
7.3.90.0060.00714.42
7.3.80.0040.01014.22
7.3.70.0110.00214.34
7.3.60.0030.01014.25
7.3.50.0070.00614.31
7.3.40.0070.00614.45
7.3.30.0050.00714.32
7.3.20.0120.00116.27
7.3.10.0080.00516.24
7.3.00.0050.00916.19
7.2.340.0040.01013.51
7.2.330.0110.00615.08
7.2.320.0060.01014.96
7.2.310.0090.00815.11
7.2.300.0120.00414.96
7.2.290.0070.01114.99
7.2.280.0040.00813.34
7.2.270.0090.00313.42
7.2.260.0080.01014.31
7.2.250.0070.00614.36
7.2.240.0080.00614.48
7.2.230.0080.00514.53
7.2.220.0040.00814.49
7.2.210.0090.00814.55
7.2.200.0070.00814.55
7.2.190.0070.00714.39
7.2.180.0060.00714.63
7.2.170.0070.00714.61
7.2.160.0060.00514.56
7.2.150.0100.00216.45
7.2.140.0070.00616.41
7.2.130.0110.00916.59
7.2.120.0100.00716.44
7.2.110.0080.00916.41
7.2.100.0080.00916.46
7.2.90.0120.00516.50
7.2.80.0090.00716.45
7.2.70.0100.00816.53
7.2.60.0070.00716.42
7.2.50.0060.00716.54
7.2.40.0060.00716.51
7.2.30.0050.00916.46
7.2.20.0090.00616.37
7.2.10.0070.00616.55
7.2.00.0070.00717.04
7.1.330.0070.00715.37
7.1.320.0040.00915.39
7.1.310.0100.00615.37
7.1.300.0100.00415.27
7.1.290.0070.00615.31
7.1.280.0070.00615.20
7.1.270.0030.01215.29
7.1.260.0060.00815.31
7.1.250.0110.00515.19
7.1.240.0080.00415.01
7.1.230.0100.00215.09
7.1.220.0100.00315.02
7.1.210.0100.00314.81
7.1.200.0080.00614.98
7.1.190.0060.00615.02
7.1.180.0090.00514.96
7.1.170.0080.00514.95
7.1.160.0040.00915.14
7.1.150.0090.00314.84
7.1.140.0090.00414.88
7.1.130.0060.00514.95
7.1.120.0110.00314.98
7.1.110.0070.00815.01
7.1.100.0080.00416.11
7.1.90.0130.00014.91
7.1.80.0090.00514.82
7.1.70.0060.00415.71
7.1.60.0100.00716.60
7.1.50.0090.00921.65
7.1.40.0090.00414.93
7.1.30.0060.00615.06
7.1.20.0050.00615.08
7.1.10.0080.00515.12
7.1.00.0030.03017.47
7.0.330.0070.00514.77
7.0.320.0100.00214.88
7.0.310.0080.00514.90
7.0.300.0090.00314.75
7.0.290.0080.00514.83
7.0.280.0080.00314.96
7.0.270.0090.00614.74
7.0.260.0060.00814.90
7.0.250.0050.00914.97
7.0.240.0060.00614.99
7.0.230.0040.01014.86
7.0.220.0080.00314.82
7.0.210.0050.01014.87
7.0.200.0070.00615.47
7.0.190.0070.00614.97
7.0.180.0090.00514.82
7.0.170.0090.00515.04
7.0.160.0090.00214.89
7.0.150.0050.00814.88
7.0.140.0030.01717.17
7.0.130.0100.00314.92
7.0.120.0050.00914.89
7.0.110.0030.00714.75
7.0.100.0080.00514.84
7.0.90.0080.00514.91
7.0.80.0100.00314.85
7.0.70.0090.00414.75
7.0.60.0070.03116.54
7.0.50.0110.02515.85
7.0.40.0080.01615.98
7.0.30.0130.02415.82
7.0.20.0110.01516.00
7.0.10.0090.03115.87
7.0.00.0030.03516.02
5.6.400.0080.00713.56
5.6.390.0060.00913.62
5.6.380.0050.00713.36
5.6.370.0080.00713.57
5.6.360.0070.00513.55
5.6.350.0060.00613.43
5.6.340.0060.00513.38
5.6.330.0050.00613.47
5.6.320.0100.00213.74
5.6.310.0100.00413.51
5.6.300.0060.00813.37
5.6.290.0050.00613.55
5.6.280.0050.02815.96
5.6.270.0080.00513.51
5.6.260.0050.00513.67
5.6.250.0090.00413.36
5.6.240.0050.00613.49
5.6.230.0070.00513.52
5.6.220.0090.00513.48
5.6.210.0070.01615.91
5.6.200.0050.03415.09
5.6.190.0070.01915.93
5.6.180.1310.01816.02
5.6.170.0140.01815.98
5.6.160.0100.01415.75
5.6.150.0090.02615.12
5.6.140.0060.02115.04
5.6.130.0040.02315.05
5.6.120.0060.02516.12
5.6.110.0070.01615.85
5.6.100.0090.03215.90
5.6.90.0070.03416.03
5.6.80.0080.02415.71
5.6.70.1400.01715.73
5.6.60.0090.00413.54
5.6.50.0080.00513.54
5.6.40.0030.00813.46
5.6.30.0050.00713.48
5.6.20.0070.00613.47
5.6.10.0070.00513.37
5.6.00.0060.00613.51
5.5.380.0080.00413.37
5.5.370.0070.00613.54
5.5.360.0060.00813.31
5.5.350.0070.01815.73
5.5.340.0120.01715.03
5.5.330.0040.01915.79
5.5.320.0070.02715.67
5.5.310.0100.02415.79
5.5.300.0060.03014.99
5.5.290.0060.02815.03
5.5.280.0070.02215.93
5.5.270.0060.03315.99
5.5.260.0080.03015.95
5.5.250.0090.02515.85
5.5.240.0040.03015.72
5.5.230.0050.00513.42
5.5.220.0090.00313.45
5.5.210.0060.00613.49
5.5.200.0090.00313.20
5.5.190.0060.00613.18
5.5.180.0060.00513.26
5.5.170.0050.00513.45
5.5.160.0020.01013.19
5.5.150.0090.00413.38
5.5.140.0070.00213.30
5.5.130.0040.00713.28
5.5.120.0030.00813.41
5.5.110.0050.00513.37
5.5.100.0070.00513.33
5.5.90.0060.00813.44
5.5.80.0070.00713.25
5.5.70.0060.00713.52
5.5.60.0050.00613.36
5.5.50.0080.00413.55
5.5.40.0100.00313.38
5.5.30.0040.00913.47
5.5.20.0100.00113.25
5.5.10.0080.00513.20
5.5.00.0020.01013.40
5.4.450.0070.02414.93
5.4.440.0060.02614.92
5.4.430.0110.02014.80
5.4.420.0140.01714.90
5.4.410.0130.01714.90
5.4.400.0090.02014.70
5.4.390.0110.01914.65
5.4.380.0080.02314.61
5.4.370.0090.02314.71
5.4.360.0130.02114.74
5.4.350.0110.01914.65
5.4.340.0110.01814.52
5.4.330.0030.00812.69
5.4.320.0110.02314.64
5.4.310.0070.02514.67
5.4.300.0090.02014.61
5.4.290.0120.01814.56
5.4.280.0050.02514.66
5.4.270.0120.01714.55
5.4.260.0140.01914.72
5.4.250.0100.02114.62
5.4.240.0080.02514.61
5.4.230.0090.02114.45
5.4.220.0130.01814.54
5.4.210.0080.02014.56
5.4.200.0150.01413.90
5.4.190.0100.02014.61
5.4.180.0100.01914.56
5.4.170.0130.01914.50
5.4.160.0130.01714.58
5.4.150.0090.02014.66
5.4.140.0090.02013.84
5.4.130.0140.02313.85
5.4.120.0080.02313.96
5.4.110.0060.02213.88
5.4.100.0140.02013.86
5.4.90.0080.02213.87
5.4.80.0100.01813.77
5.4.70.0120.02213.92
5.4.60.0110.02013.85
5.4.50.0090.02013.86
5.4.40.0090.01913.86
5.4.30.0040.02313.81
5.4.20.0110.01813.74
5.4.10.0080.02013.71
5.4.00.0080.01913.64
5.3.290.0120.03314.02
5.3.280.0120.02713.89
5.3.270.0140.02813.80
5.3.260.0150.02813.91
5.3.250.0110.03114.03
5.3.240.0120.02813.87
5.3.230.0170.02313.79
5.3.220.0180.02313.74
5.3.210.0170.02513.79
5.3.200.0170.02213.87
5.3.190.0090.03013.82
5.3.180.0150.02513.93
5.3.170.0120.02513.79
5.3.160.0160.02413.99
5.3.150.0120.02713.87
5.3.140.0140.03513.75
5.3.130.0100.03013.86
5.3.120.0140.02813.75
5.3.110.0150.04013.96
5.3.100.0130.03713.57
5.3.90.0120.04013.52
5.3.80.0150.02313.51
5.3.70.0170.02213.46
5.3.60.0130.02313.45
5.3.50.0120.02513.38
5.3.40.0070.03213.61
5.3.30.0100.02713.55
5.3.20.0070.03313.39
5.3.10.0130.02313.36
5.3.00.0120.02713.14
5.2.170.0120.02111.53
5.2.160.0050.02811.57
5.2.150.0050.02811.64
5.2.140.0050.02611.62
5.2.130.0050.02411.60
5.2.120.0060.02311.59
5.2.110.0060.02511.54
5.2.100.0100.02011.55
5.2.90.0050.02611.67
5.2.80.0070.02411.61
5.2.70.0020.03011.64
5.2.60.0090.02511.45
5.2.50.0120.01911.53
5.2.40.0090.02211.39
5.2.30.0070.02211.31
5.2.20.0180.01611.38
5.2.10.0100.02011.31
5.2.00.0110.02311.23
5.1.60.0070.01810.46
5.1.50.0100.01610.55
5.1.40.0090.01610.55
5.1.30.0090.02010.69
5.1.20.0030.03010.82
5.1.10.0050.02210.68
5.1.00.0070.02010.58
5.0.50.0050.0159.54
5.0.40.0080.0129.47
5.0.30.0070.0219.45
5.0.20.0030.0179.35
5.0.10.0080.0129.41
5.0.00.0050.0239.43
4.4.90.0070.0088.25
4.4.80.0050.0128.22
4.4.70.0030.0138.20
4.4.60.0070.0108.20
4.4.50.0040.0128.20
4.4.40.0030.0198.20
4.4.30.0020.0138.20
4.4.20.0060.0098.23
4.4.10.0050.0108.25
4.4.00.0030.0198.23
4.3.110.0050.0108.20
4.3.100.0030.0158.17
4.3.90.0050.0108.20
4.3.80.0050.0158.17
4.3.70.0050.0108.15
4.3.60.0050.0088.15
4.3.50.0030.0128.15
4.3.40.0040.0188.15
4.3.30.0030.0127.55
4.3.20.0070.0087.54
4.3.10.0030.0137.52
4.3.00.0020.0128.76

preferences:
44.38 ms | 400 KiB | 5 Q