3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?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)
5.6.130.0130.07318.22
5.6.120.0000.04721.14
5.6.110.0030.09021.02
5.6.100.0070.04020.97
5.6.90.0130.08020.97
5.6.80.0100.07720.37
5.5.290.0100.07718.02
5.5.280.0000.05020.63
5.5.270.0100.08020.75
5.5.260.0070.04020.84
5.5.250.0030.07720.54
5.5.240.0170.03320.34
5.4.450.0570.04719.44
5.4.440.0500.05719.45
5.4.430.0570.05319.67
5.4.420.0430.05719.41
5.4.410.0630.05019.55
5.4.400.0570.05318.95
5.4.390.0570.06718.82
5.4.380.0600.05719.24
5.4.370.0670.04019.00
5.4.360.0670.06319.09
5.4.350.0630.05718.82
5.4.340.0670.05319.25
5.4.320.0630.05319.11
5.4.310.0600.05319.21
5.4.300.0630.04719.27
5.4.290.0600.06019.29
5.4.280.0530.05318.82
5.4.270.0500.06019.04
5.4.260.0630.04719.23
5.4.250.0530.05719.14
5.4.240.0670.04319.14
5.4.230.0630.05318.82
5.4.220.0600.05319.25
5.4.210.0600.05019.00
5.4.200.0600.04718.82
5.4.190.0470.05718.81
5.4.180.0530.05719.28
5.4.170.0630.04718.93
5.4.160.0530.05319.32
5.4.150.0570.05718.81
5.4.140.0670.04316.32
5.4.130.0470.05316.41
5.4.120.0500.07016.30
5.4.110.0530.07016.68
5.4.100.0600.05316.54
5.4.90.0670.05016.61
5.4.80.0630.04316.57
5.4.70.0030.03716.55
5.4.60.0030.06716.51
5.4.50.0030.06316.25
5.4.40.0300.07016.21
5.4.30.0230.02716.33
5.4.20.0300.04016.38

preferences:
125.05 ms | 1398 KiB | 7 Q