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>"; }

preferences:
28.31 ms | 404 KiB | 5 Q