3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "client_id": 1234, "rawdata": [{ "task_id1": { "apikey1": "1234", "flow": "ssp", "total_chocolate_request": 43235, "start_time": "2017 - 05 - 09 12: 29: 00 UTC", "end_time": "2017 - 05 - 09 12: 29: 00 UTC" }, "task_id2": { "apikey2": "1235", "flow": "mobileweb", "total_chocolate_request": 43235, "start_time": "2017 - 05 - 09 12: 29: 00 UTC", "end_time": "2017 - 05 - 09 12: 29: 00 UTC" } }]}'; $parsed = json_decode($json, true); foreach($parsed['rawdata'] as $v){ print_r($v); echo PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [task_id1] => Array ( [apikey1] => 1234 [flow] => ssp [total_chocolate_request] => 43235 [start_time] => 2017 - 05 - 09 12: 29: 00 UTC [end_time] => 2017 - 05 - 09 12: 29: 00 UTC ) [task_id2] => Array ( [apikey2] => 1235 [flow] => mobileweb [total_chocolate_request] => 43235 [start_time] => 2017 - 05 - 09 12: 29: 00 UTC [end_time] => 2017 - 05 - 09 12: 29: 00 UTC ) )

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:
111.22 ms | 1567 KiB | 4 Q