3v4l.org

run code in 500+ PHP versions simultaneously
<?php $result = '[ { "id": 1, "name": "Leanne Graham", "username": "Bret", "email": "Sincere@april.biz", "address": { "street": "Kulas Light", "suite": "Apt. 556", "city": "Gwenborough", "zipcode": "92998-3874", "geo": { "lat": "-37.3159", "lng": "81.1496" } }, "phone": "1-770-736-8031 x56442", "website": "hildegard.org", "company": { "name": "Romaguera-Crona", "catchPhrase": "Multi-layered client-server neural-net", "bs": "harness real-time e-markets" } }]'; $id = 1; $data = json_decode($result, true) ; foreach ($data as $mydata) { if ($mydata["id"] == $id) { echo $mydata["address"]["street"] ; break ; } }
Output for git.master, git.master_jit, rfc.property-hooks
Kulas Light

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:
46.56 ms | 1404 KiB | 4 Q