3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON { "status": "OK", "page": { "rows": 5000, "more": 0, "number": 1 }, "accounts": [ { "connected": 0, "settings": { "link_first_study_only": "0", "update_study_source_on_notify": "1", "link_external_whitelist": "", "other_ingress_tags": "" }, "must_approve_upload": 0, "css": null, "share_via_gateway": 0, "password_expire": 90, "vanity": "medpics" } ] } JSON; $json = json_decode($json, true); function ksort_recursive(&$array) { ksort($array); foreach ($array as &$value) { if (is_array($value)) { ksort_recursive($value); } } } ksort_recursive($json); print_r($json);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [accounts] => Array ( [0] => Array ( [connected] => 0 [css] => [must_approve_upload] => 0 [password_expire] => 90 [settings] => Array ( [link_external_whitelist] => [link_first_study_only] => 0 [other_ingress_tags] => [update_study_source_on_notify] => 1 ) [share_via_gateway] => 0 [vanity] => medpics ) ) [page] => Array ( [more] => 0 [number] => 1 [rows] => 5000 ) [status] => OK )

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