3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = json_decode('{"services": {"service": [ { "custom_name": "My Compose Service", "service_id": "73", "cloud_services": {"cloud_service": [ { "custom_name": "My Personal TAI Cloud", "service_id": "71" }, { "custom_name": "My Professional TAI Cloud", "service_id": "72" }, null ]} }, null ]}}', true); var_dump(iterator_to_array(new RecursiveArrayIterator($response)));
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["services"]=> array(1) { ["service"]=> array(2) { [0]=> array(3) { ["custom_name"]=> string(18) "My Compose Service" ["service_id"]=> string(2) "73" ["cloud_services"]=> array(1) { ["cloud_service"]=> array(3) { [0]=> array(2) { ["custom_name"]=> string(21) "My Personal TAI Cloud" ["service_id"]=> string(2) "71" } [1]=> array(2) { ["custom_name"]=> string(25) "My Professional TAI Cloud" ["service_id"]=> string(2) "72" } [2]=> NULL } } } [1]=> NULL } } }

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:
68.39 ms | 403 KiB | 8 Q