3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = '[{"id":2,"category":"Food%2C%20Drinks%20%26%20Clothes","description":"Nasi%20Lemak%2C%20Teh%20Tarik%20","cost":"5","transactionDate":"2016-10-04"},{"id":3,"category":"Food%2C%20Drinks%20%26%20Clothes","description":"Rori%20Canai","cost":"3"}]'; $data = json_decode($s, true); for ($i = 0; $i < count($data); $i++){ echo "id: ".$data[$i]["id"]. ", desc: ".$data[$i]["description"]. ", cost: ".$data[$i]["cost"] . '<br />'; }
Output for git.master, git.master_jit, rfc.property-hooks
id: 2, desc: Nasi%20Lemak%2C%20Teh%20Tarik%20, cost: 5<br />id: 3, desc: Rori%20Canai, cost: 3<br />

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:
106.6 ms | 1512 KiB | 4 Q