3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Your Site Settings $site_public_key = 'X'; $site_private_key = 'X'; //Connection Resource $resource_uri = 'https://api.lkqd.com/reports'; $body = '{ "timeDimension": "HOURLY", // OVERALL, DAILY, HOURLY "reportType": ["PARTNER"], // Up to 3 dimensions among OVERVIEW, PARTNER, DOMAIN, APP_NAME, SITE, SOURCE, DEAL, TAG, FORMAT, COUNTRY, CUSTOM1, CUSTOM2, CUSTOM3, OS, DEVICE, PLAYER_WIDTH_HEIGHT "reportFormat": "JSON", // JSON, CSV "startDate": "2015-01-08", // Required, These are in America/New_York timezone by default "endDate": "2015-01-09", // Required, These are in America/New_York timezone by default "startHour": 5, // Optional, only meaningful for HOURLY time dimension, must be Int (not String) //"endHour": 19, // Optional, only meaningful for HOURLY time dimension, must be Int (not String) "timezone": "UTC", // "UTC" and "America/New_York" currently supported "sort": [{ "field": "field_name1", // field_name1, field_name2, field_name3, ad_requests, ad_impressions, ad_fill_rate, ad_cpm, ad_revenue, ad_ctr, ad_vtr "order": "desc" // asc, desc }], // "limit": 100, // default is unlimited //"offset": 300 // default 0 }'; //Setup connection $curl = curl_init($resource_uri); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-Type: application/json","Authorization: xxxx")); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $body); curl_setopt($curl, CURLOPT_USERPWD, $site_public_key . ":" . $site_private_key); //Send request $result_json = curl_exec($curl); curl_close($curl); //Done print_r($result_json); $responseData = json_decode($response, TRUE); print_r($responseData); ?>

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.60.0120.00316.50
8.3.50.0130.00921.14
8.3.40.0090.00618.76
8.3.30.0070.00718.80
8.3.20.0060.00320.38
8.3.10.0040.00423.48
8.3.00.0050.00319.68
8.2.180.0140.00416.75
8.2.170.0070.00722.96
8.2.160.0080.00520.33
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00317.38
8.2.110.0170.00319.37
8.2.100.0030.00917.50
8.2.90.0070.00019.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00617.90
8.2.50.0000.00818.07
8.2.40.0050.00219.36
8.2.30.0040.00418.07
8.2.20.0080.00017.64
8.2.10.0070.00018.01
8.2.00.0040.00418.03
8.1.280.0150.00725.92
8.1.270.0040.00421.99
8.1.260.0020.00526.35
8.1.250.0030.00528.09
8.1.240.0090.00019.01
8.1.230.0040.00717.42
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0040.00417.13
8.1.180.0080.00018.10
8.1.170.0000.00818.58
8.1.160.0040.00421.93
8.1.150.0000.00718.84
8.1.140.0000.00817.32
8.1.130.0030.00317.56
8.1.120.0030.00317.45
8.1.110.0000.00717.39
8.1.100.0000.00717.33
8.1.90.0000.00717.39
8.1.80.0030.00417.33
8.1.70.0000.00717.30
8.1.60.0000.00717.58
8.1.50.0070.00017.49
8.1.40.0000.00817.55
8.1.30.0000.00917.71
8.1.20.0040.00417.71
8.1.10.0000.00717.52
8.1.00.0030.00617.46
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.27
8.0.270.0000.00717.21
8.0.260.0030.00317.17
8.0.250.0050.00317.04
8.0.240.0000.00616.91
8.0.230.0030.00316.93
8.0.220.0000.00716.80
8.0.210.0000.00716.89
8.0.200.0080.00016.99
8.0.190.0060.00317.03
8.0.180.0000.00816.96
8.0.170.0040.00416.85
8.0.160.0040.00416.94
8.0.150.0050.00316.92
8.0.140.0000.00716.90
8.0.130.0030.00313.38
8.0.120.0000.00716.91
8.0.110.0000.00816.85
8.0.100.0040.00416.95
8.0.90.0040.00316.80
8.0.80.0100.00716.82
8.0.70.0050.00216.82
8.0.60.0000.00716.86
8.0.50.0030.00516.91
8.0.30.0110.00717.18
8.0.20.0080.01117.40
8.0.10.0000.00817.14
8.0.00.0120.00816.88
7.4.330.0000.00515.08
7.4.320.0000.00616.57
7.4.300.0060.00016.51
7.4.290.0030.00516.54
7.4.280.0040.00416.51
7.4.270.0070.00016.64
7.4.260.0040.00416.60
7.4.250.0040.00416.36
7.4.240.0000.00716.53
7.4.230.0000.00716.39
7.4.220.0100.00716.71
7.4.210.0070.01016.62
7.4.200.0000.00716.64
7.4.160.0040.01216.52
7.4.150.0120.00617.40
7.4.140.0140.00717.86
7.4.130.0110.01216.39
7.4.120.0110.00616.61
7.4.110.0070.01016.40
7.4.100.0090.00916.45
7.4.90.0100.01316.76
7.4.80.0110.00619.39
7.4.70.0120.00616.44
7.4.60.0060.01016.42
7.4.50.0000.00816.37
7.4.40.0130.00416.57
7.4.30.0210.00316.59
7.4.00.0060.00914.79
7.3.330.0050.00213.28
7.3.320.0050.00013.28
7.3.310.0000.00716.38
7.3.300.0000.00716.18
7.3.290.0110.00616.33
7.3.280.0090.00916.28
7.3.270.0070.01017.40
7.3.260.0070.01016.48
7.3.250.0090.00716.44
7.3.240.0090.01216.24
7.3.230.0090.00916.43
7.3.210.0090.00816.32
7.3.200.0100.01016.32
7.3.190.0030.01316.57
7.3.180.0130.00316.38
7.3.170.0140.00716.36
7.3.160.0090.00816.18
7.2.330.0100.01316.59
7.2.320.0110.00716.55
7.2.310.0090.00616.48
7.2.300.0130.00316.49
7.2.290.0110.00716.61
7.2.80.0090.00616.18
7.2.60.0100.00316.61
7.2.00.0090.00619.42
7.1.200.0050.00515.73
7.1.100.0100.00317.90
7.1.70.0000.00817.16
7.1.60.0070.01720.03
7.1.50.0080.01516.88
7.1.00.0070.07322.45
7.0.200.0260.00314.46
7.0.60.0030.08719.93
7.0.50.0030.05317.84
7.0.40.0070.08720.02
7.0.30.0330.05720.31
7.0.20.0300.07320.00
7.0.10.0070.08720.20
7.0.00.0070.04020.15
5.6.280.0000.06021.12
5.6.210.0100.06720.72
5.6.200.0130.07018.15
5.6.190.0100.08020.48
5.6.180.3170.04020.57
5.6.170.0270.05720.37
5.6.160.0100.08320.49
5.6.150.0030.04318.11
5.6.140.0030.04018.15
5.6.130.0070.04018.18
5.6.120.0200.07321.03
5.6.110.0070.08321.11
5.6.100.0130.08020.86
5.6.90.0000.09321.13
5.6.80.0030.05320.51
5.6.70.4600.04020.37
5.5.350.0200.08320.52
5.5.340.0000.04317.91
5.5.330.0100.07720.07
5.5.320.0270.04720.20
5.5.310.0370.07020.26
5.5.300.0100.03317.91
5.5.290.0100.04317.91
5.5.280.0100.05320.80
5.5.270.0100.08320.88
5.5.260.0200.06720.76
5.5.250.0100.08020.78
5.5.240.0370.06020.12
5.4.450.0600.06019.27
5.4.440.0670.07319.47
5.4.430.0570.05319.44
5.4.420.0700.05719.63
5.4.410.0730.08019.38
5.4.400.0700.04318.77
5.4.390.0500.05719.09
5.4.380.0600.05318.88
5.4.370.0600.06019.19
5.4.360.0600.05318.76
5.4.350.0430.06318.77
5.4.340.0570.06719.10
5.4.320.0500.05318.76
5.4.310.0670.04719.12
5.4.300.0670.04019.19
5.4.290.0700.04718.79
5.4.280.0570.05318.97
5.4.270.0470.06019.04
5.4.260.0530.05319.19
5.4.250.0670.06018.88
5.4.240.0630.05018.97
5.4.230.0600.05719.18
5.4.220.0500.05719.25
5.4.210.0630.04319.09
5.4.200.0500.05319.11
5.4.190.0430.06019.27
5.4.180.0500.04719.08
5.4.170.0500.04719.28
5.4.160.0600.05019.16
5.4.150.0600.05319.27
5.4.140.0370.05716.17
5.4.130.0500.05016.40
5.4.120.0600.04716.45
5.4.110.0830.04316.49
5.4.100.0570.05716.47
5.4.90.0570.04316.55
5.4.80.0370.06716.34
5.4.70.0000.07016.29
5.4.60.0300.04316.49
5.4.50.0000.03316.39
5.4.40.0270.06316.43
5.4.30.0170.03716.18
5.4.20.0300.06716.45

preferences:
56.73 ms | 401 KiB | 5 Q