3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "1":{ "data":"123", "more_data":"456" }, "2":{ "data":"789", "more_data":"123" } }'; $data = json_decode($json, true); foreach($data as $uniqueID => $single) { echo 'Unique-ID: ' . $uniqueID . PHP_EOL; echo 'data: ' . $single['data'] . PHP_EOL; echo 'more_data: ' . $single['more_data'] . PHP_EOL; echo PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Unique-ID: 1 data: 123 more_data: 456 Unique-ID: 2 data: 789 more_data: 123

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:
30.71 ms | 405 KiB | 5 Q