3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"alpha_2": "AD", "alpha_3": "AND", "area": "468", "capital": "Andorra la Vella", "continent": "EU", "currency_code": "EUR", "currency_name": "Euro", "eqivalent_fips_code": "", "fips": "AN", "geoname_id": "3041565", "languages": "ca", "name": "Andorra", "neighbours": "ES,FR", "numeric": "020", "phone": "376", "population": "84000", "postal_code_format": "AD###", "postal_code_regex": "^(?:AD)*(\\\\d{3})$", "tld": ".ad"}]'; var_dump(json_decode($json, true));
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(19) { ["alpha_2"]=> string(2) "AD" ["alpha_3"]=> string(3) "AND" ["area"]=> string(3) "468" ["capital"]=> string(16) "Andorra la Vella" ["continent"]=> string(2) "EU" ["currency_code"]=> string(3) "EUR" ["currency_name"]=> string(4) "Euro" ["eqivalent_fips_code"]=> string(0) "" ["fips"]=> string(2) "AN" ["geoname_id"]=> string(7) "3041565" ["languages"]=> string(2) "ca" ["name"]=> string(7) "Andorra" ["neighbours"]=> string(5) "ES,FR" ["numeric"]=> string(3) "020" ["phone"]=> string(3) "376" ["population"]=> string(5) "84000" ["postal_code_format"]=> string(5) "AD###" ["postal_code_regex"]=> string(16) "^(?:AD)*(\d{3})$" ["tld"]=> string(3) ".ad" } }

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:
32.01 ms | 403 KiB | 8 Q