3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{ "google.com": { "clicks": 23, "browsers": { "Chrome": 19, "Mozilla": 2, "Safari": 1 } }, "mcnitro.net": { "clicks": 87, "browsers": { "Chrome": 19, "Mozilla": 2, "Safari": 1 } } }'; //$jsonString = file_get_contents('stats.json'); $data = json_decode($str, true); foreach($data as $key => $domain) { echo $key . "\n"; echo $domain['clicks'] . "\n\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
google.com 23 mcnitro.net 87

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