3v4l.org

run code in 300+ PHP versions simultaneously
<table> <?php $a = '{ "currency": { "id": "1", "code": "USD", "prefix": "$", "suffix": " USD", "format": "2", "rate": "1.00000" }, "pricing": { "com": { "categories": [ "Popular", "gTLD" ], "addons": { "dns": true, "email": true, "idprotect": true }, "group": "new", "register": { "1": "9.95", "2": "19.90", "3": "29.85" }, "transfer": { "1": "9.95", "2": "15.00", "3": "25.00" }, "renew": { "1": "9.95", "2": "15.00", "3": "25.00" } }, "net": { "categories": [ "Popular", "gTLD" ], "addons": { "dns": false, "email": false, "idprotect": false }, "group": "sale", "register": { "1": "9.00" }, "transfer": { "1": "11.95" }, "renew": { "1": "11.95" } }, "org": { "categories": [ "Popular", "gTLD" ], "addons": { "dns": false, "email": false, "idprotect": false }, "group": "hot", "register": { "1": "11.95" }, "transfer": { "1": "11.95" }, "renew": { "1": "11.95" } } } }'; $domains = json_decode($a); foreach ($domains->pricing as $tld => $attrs) { echo "<tr>"; echo "<td>".$tld."</td>"; echo "<td>1yr (".$attrs->register->{1}.")</td>"; echo "<td>1yr (".$attrs->transfer->{1}.")</td>"; echo "<td>1yr (".$attrs->renew->{1}.")</td>"; echo "</tr>"; }
Output for git.master, git.master_jit, rfc.property-hooks
<table> <tr><td>com</td><td>1yr (9.95)</td><td>1yr (9.95)</td><td>1yr (9.95)</td></tr><tr><td>net</td><td>1yr (9.00)</td><td>1yr (11.95)</td><td>1yr (11.95)</td></tr><tr><td>org</td><td>1yr (11.95)</td><td>1yr (11.95)</td><td>1yr (11.95)</td></tr>

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:
328.05 ms | 406 KiB | 5 Q