3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl_response = '{ "options": { "ranking_metric": "paid_impressions", "time_interval": "day", "report_type": "time", "filters": { "pid": "2759" }, "data_source": "detailed", "format": "json", "end_date": "2018-10-28 23:59", "columns": ["paid_impressions", "revenue"], "time_zone": "UTC", "start_date": "2018-10-26 00:00" }, "api_url": "http://udmserve.com/udm/radalytics_api.cpx?action=report&api_key=xxxx&api_key=xxxx", "time": 1540989662, "rows": [{ "paid_impressions": "18136", "timestamp": "2018-10-26 00:00", "_combined_val": "", "ranking_col": "49046", "revenue": "28.461629999999985", "rank": "1", "f0_": "" }, { "paid_impressions": "14432", "timestamp": "2018-10-27 00:00", "_combined_val": "", "ranking_col": "49046", "revenue": "25.707970000000017", "rank": "1", "f0_": "" }, { "paid_impressions": "16478", "timestamp": "2018-10-28 00:00", "_combined_val": "", "ranking_col": "49046", "revenue": "29.07676000000002", "rank": "1", "f0_": "" }] }'; $array = json_decode($curl_response,true); foreach($array['rows'] as $arr){ echo explode(' ',$arr['timestamp'])[0].'-'.number_format((float)$arr['revenue'], 2, '.', '').' USD'.PHP_EOL; }
Output for git.master_jit, git.master, rfc.property-hooks
2018-10-26-28.46 USD 2018-10-27-25.71 USD 2018-10-28-29.08 USD

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.43 ms | 401 KiB | 8 Q