3v4l.org

run code in 300+ PHP versions simultaneously
<?php $raw_json = <<< 'JSON' { "fruit": [{ "id": 364823, "name": "Lemon", "amount": [33], "profile": "http://google.com", "buyid": 5 }, { "id": 367851, "name": "Orange", "amount": [69, 95, 166], "profile": "http://google.com", "buyid": 3 },{ "id": 35647, "name": "Apple", "amount": [77, 43], "profile": "http://google.com", "buyid": 31 } ] } JSON; $json = json_decode($raw_json, true); foreach($json['fruit'] as $fruit){ echo implode(' ',$fruit['amount'])."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
33 69 95 166 77 43

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:
44.58 ms | 401 KiB | 8 Q