3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c =[ 'AF' => 'Afghanistan', 'AL' => 'Albania', 'DZ' => 'Algeria', 'AS' => 'American Samoa', 'AD' => 'Andorra', 'AO' => 'Angola', 'AI' => 'Anguilla', 'AQ' => 'Antarctica', 'AG' => 'Antigua And Barbuda', 'AR' => 'Argentina', 'AM' => 'Armenia', 'AW' => 'Aruba', 'AU' => 'Australia', 'AT' => 'Austria', 'AZ' => 'Azerbaijan', 'BS' => 'Bahamas', 'BH' => 'Bahrain', 'BD' => 'Bangladesh', 'BB' => 'Barbados', 'BY' => 'Belarus', 'BE' => 'Belgium', 'BZ' => 'Belize', 'BJ' => 'Benin', 'BM' => 'Bermuda', 'BT' => 'Bhutan', 'BO' => 'Bolivia', 'BA' => 'Bosnia And Herzegovina', 'BW' => 'Botswana', 'BV' => 'Bouvet Island', 'BR' => 'Brazil', 'IO' => 'British Indian Ocean Territory', 'BN' => 'Brunei Darussalam', 'BG' => 'Bulgaria', 'BF' => 'Burkina Faso', 'BI' => 'Burundi', 'KH' => 'Cambodia', 'CM' => 'Cameroon', 'CA' => 'Canada', 'CV' => 'Cape Verde', 'KY' => 'Cayman Islands', 'CF' => 'Central African Republic', 'TD' => 'Chad', 'CL' => 'Chile', 'CN' => 'China', 'CX' => 'Christmas Island', 'CC' => 'Cocos (keeling) Islands', 'CO' => 'Colombia', 'KM' => 'Comoros', 'CG' => 'Congo', 'CD' => 'Congo, The Democratic Republic Of The', 'CK' => 'Cook Islands', 'CR' => 'Costa Rica', 'CI' => 'Cote D\'Ivoire', 'HR' => 'Croatia', 'CU' => 'Cuba', 'CY' => 'Cyprus', 'CZ' => 'Czech Republic', 'DK' => 'Denmark', 'DJ' => 'Djibouti', 'DM' => 'Dominica', 'DO' => 'Dominican Republic', 'TP' => 'East Timor', 'EC' => 'Ecuador', 'EG' => 'Egypt', 'SV' => 'El Salvador', 'GQ' => 'Equatorial Guinea', 'ER' => 'Eritrea', 'EE' => 'Estonia', 'ET' => 'Ethiopia', 'FK' => 'Falkland Islands (Malvinas)', 'FO' => 'Faroe Islands', 'FJ' => 'Fiji', 'FI' => 'Finland', 'FR' => 'France', 'GF' => 'French Guiana', 'PF' => 'French Polynesia', 'TF' => 'French Southern Territories', 'GA' => 'Gabon', 'GM' => 'Gambia', 'GE' => 'Georgia', 'DE' => 'Germany', 'GH' => 'Ghana', 'GI' => 'Gibraltar', 'GR' => 'Greece', 'GL' => 'Greenland', 'GD' => 'Grenada', 'GP' => 'Guadeloupe', 'GU' => 'Guam', 'GT' => 'Guatemala', 'GN' => 'Guinea', 'GW' => 'Guinea-bissau', 'GY' => 'Guyana', 'HT' => 'Haiti', 'HM' => 'Heard Island And Mcdonald Islands', 'VA' => 'Holy See (Vatican City State)', 'HN' => 'Honduras', 'HK' => 'Hong Kong', 'HU' => 'Hungary', 'IS' => 'Iceland', 'IN' => 'India', 'ID' => 'Indonesia', 'IR' => 'Iran, Islamic Republic Of', 'IQ' => 'Iraq', 'IE' => 'Ireland', 'IL' => 'Israel', 'IT' => 'Italy', 'JM' => 'Jamaica', 'JP' => 'Japan', 'JO' => 'Jordan', 'KZ' => 'Kazakstan', 'KE' => 'Kenya', 'KI' => 'Kiribati', 'KP' => 'Korea, Democratic People\'s Republic Of', 'KR' => 'Korea, Republic Of', 'KV' => 'Kosovo', 'KW' => 'Kuwait', 'KG' => 'Kyrgyzstan', 'LA' => 'Lao People\'s Democratic Republic', 'LV' => 'Latvia', 'LB' => 'Lebanon', 'LS' => 'Lesotho', 'LR' => 'Liberia', 'LY' => 'Libyan Arab Jamahiriya', 'LI' => 'Liechtenstein', 'LT' => 'Lithuania', 'LU' => 'Luxembourg', 'MO' => 'Macau', 'MK' => 'Macedonia, The Former Yugoslav Republic Of', 'MG' => 'Madagascar', 'MW' => 'Malawi', 'MY' => 'Malaysia', 'MV' => 'Maldives', 'ML' => 'Mali', 'MT' => 'Malta', 'MH' => 'Marshall Islands', 'MQ' => 'Martinique', 'MR' => 'Mauritania', 'MU' => 'Mauritius', 'YT' => 'Mayotte', 'MX' => 'Mexico', 'FM' => 'Micronesia, Federated States Of', 'MD' => 'Moldova, Republic Of', 'MC' => 'Monaco', 'MN' => 'Mongolia', 'MS' => 'Montserrat', 'ME' => 'Montenegro', 'MA' => 'Morocco', 'MZ' => 'Mozambique', 'MM' => 'Myanmar', 'NA' => 'Namibia', 'NR' => 'Nauru', 'NP' => 'Nepal', 'NL' => 'Netherlands', 'AN' => 'Netherlands Antilles', 'NC' => 'New Caledonia', 'NZ' => 'New Zealand', 'NI' => 'Nicaragua', 'NE' => 'Niger', 'NG' => 'Nigeria', 'NU' => 'Niue', 'NF' => 'Norfolk Island', 'MP' => 'Northern Mariana Islands', 'NO' => 'Norway', 'OM' => 'Oman', 'PK' => 'Pakistan', 'PW' => 'Palau', 'PS' => 'Palestinian Territory, Occupied', 'PA' => 'Panama', 'PG' => 'Papua New Guinea', 'PY' => 'Paraguay', 'PE' => 'Peru', 'PH' => 'Philippines', 'PN' => 'Pitcairn', 'PL' => 'Poland', 'PT' => 'Portugal', 'PR' => 'Puerto Rico', 'QA' => 'Qatar', 'RE' => 'Reunion', 'RO' => 'Romania', 'RU' => 'Russian Federation', 'RW' => 'Rwanda', 'SH' => 'Saint Helena', 'KN' => 'Saint Kitts And Nevis', 'LC' => 'Saint Lucia', 'PM' => 'Saint Pierre And Miquelon', 'VC' => 'Saint Vincent And The Grenadines', 'WS' => 'Samoa', 'SM' => 'San Marino', 'ST' => 'Sao Tome And Principe', 'SA' => 'Saudi Arabia', 'SN' => 'Senegal', 'RS' => 'Serbia', 'SC' => 'Seychelles', 'SL' => 'Sierra Leone', 'SG' => 'Singapore', 'SK' => 'Slovakia', 'SI' => 'Slovenia', 'SB' => 'Solomon Islands', 'SO' => 'Somalia', 'ZA' => 'South Africa', 'GS' => 'South Georgia And The South Sandwich Islands', 'ES' => 'Spain', 'LK' => 'Sri Lanka', 'SD' => 'Sudan', 'SR' => 'Suriname', 'SJ' => 'Svalbard And Jan Mayen', 'SZ' => 'Swaziland', 'SE' => 'Sweden', 'CH' => 'Switzerland', 'SY' => 'Syrian Arab Republic', 'TW' => 'Taiwan, Province Of China', 'TJ' => 'Tajikistan', 'TZ' => 'Tanzania, United Republic Of', 'TH' => 'Thailand', 'TG' => 'Togo', 'TK' => 'Tokelau', 'TO' => 'Tonga', 'TT' => 'Trinidad And Tobago', 'TN' => 'Tunisia', 'TR' => 'Turkey', 'TM' => 'Turkmenistan', 'TC' => 'Turks And Caicos Islands', 'TV' => 'Tuvalu', 'UG' => 'Uganda', 'UA' => 'Ukraine', 'AE' => 'United Arab Emirates', 'GB' => 'United Kingdom', 'US' => 'United States', 'UM' => 'United States Minor Outlying Islands', 'UY' => 'Uruguay', 'UZ' => 'Uzbekistan', 'VU' => 'Vanuatu', 'VE' => 'Venezuela', 'VN' => 'Viet Nam', 'VG' => 'Virgin Islands, British', 'VI' => 'Virgin Islands, U.S.', 'WF' => 'Wallis And Futuna', 'EH' => 'Western Sahara', 'YE' => 'Yemen', 'ZM' => 'Zambia', 'ZW' => 'Zimbabwe', ]; array_walk($c, function ($c, $i) { printf(" * @method static Country %s()\n", strtolower($i)); });
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.4 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
* @method static Country af() * @method static Country al() * @method static Country dz() * @method static Country as() * @method static Country ad() * @method static Country ao() * @method static Country ai() * @method static Country aq() * @method static Country ag() * @method static Country ar() * @method static Country am() * @method static Country aw() * @method static Country au() * @method static Country at() * @method static Country az() * @method static Country bs() * @method static Country bh() * @method static Country bd() * @method static Country bb() * @method static Country by() * @method static Country be() * @method static Country bz() * @method static Country bj() * @method static Country bm() * @method static Country bt() * @method static Country bo() * @method static Country ba() * @method static Country bw() * @method static Country bv() * @method static Country br() * @method static Country io() * @method static Country bn() * @method static Country bg() * @method static Country bf() * @method static Country bi() * @method static Country kh() * @method static Country cm() * @method static Country ca() * @method static Country cv() * @method static Country ky() * @method static Country cf() * @method static Country td() * @method static Country cl() * @method static Country cn() * @method static Country cx() * @method static Country cc() * @method static Country co() * @method static Country km() * @method static Country cg() * @method static Country cd() * @method static Country ck() * @method static Country cr() * @method static Country ci() * @method static Country hr() * @method static Country cu() * @method static Country cy() * @method static Country cz() * @method static Country dk() * @method static Country dj() * @method static Country dm() * @method static Country do() * @method static Country tp() * @method static Country ec() * @method static Country eg() * @method static Country sv() * @method static Country gq() * @method static Country er() * @method static Country ee() * @method static Country et() * @method static Country fk() * @method static Country fo() * @method static Country fj() * @method static Country fi() * @method static Country fr() * @method static Country gf() * @method static Country pf() * @method static Country tf() * @method static Country ga() * @method static Country gm() * @method static Country ge() * @method static Country de() * @method static Country gh() * @method static Country gi() * @method static Country gr() * @method static Country gl() * @method static Country gd() * @method static Country gp() * @method static Country gu() * @method static Country gt() * @method static Country gn() * @method static Country gw() * @method static Country gy() * @method static Country ht() * @method static Country hm() * @method static Country va() * @method static Country hn() * @method static Country hk() * @method static Country hu() * @method static Country is() * @method static Country in() * @method static Country id() * @method static Country ir() * @method static Country iq() * @method static Country ie() * @method static Country il() * @method static Country it() * @method static Country jm() * @method static Country jp() * @method static Country jo() * @method static Country kz() * @method static Country ke() * @method static Country ki() * @method static Country kp() * @method static Country kr() * @method static Country kv() * @method static Country kw() * @method static Country kg() * @method static Country la() * @method static Country lv() * @method static Country lb() * @method static Country ls() * @method static Country lr() * @method static Country ly() * @method static Country li() * @method static Country lt() * @method static Country lu() * @method static Country mo() * @method static Country mk() * @method static Country mg() * @method static Country mw() * @method static Country my() * @method static Country mv() * @method static Country ml() * @method static Country mt() * @method static Country mh() * @method static Country mq() * @method static Country mr() * @method static Country mu() * @method static Country yt() * @method static Country mx() * @method static Country fm() * @method static Country md() * @method static Country mc() * @method static Country mn() * @method static Country ms() * @method static Country me() * @method static Country ma() * @method static Country mz() * @method static Country mm() * @method static Country na() * @method static Country nr() * @method static Country np() * @method static Country nl() * @method static Country an() * @method static Country nc() * @method static Country nz() * @method static Country ni() * @method static Country ne() * @method static Country ng() * @method static Country nu() * @method static Country nf() * @method static Country mp() * @method static Country no() * @method static Country om() * @method static Country pk() * @method static Country pw() * @method static Country ps() * @method static Country pa() * @method static Country pg() * @method static Country py() * @method static Country pe() * @method static Country ph() * @method static Country pn() * @method static Country pl() * @method static Country pt() * @method static Country pr() * @method static Country qa() * @method static Country re() * @method static Country ro() * @method static Country ru() * @method static Country rw() * @method static Country sh() * @method static Country kn() * @method static Country lc() * @method static Country pm() * @method static Country vc() * @method static Country ws() * @method static Country sm() * @method static Country st() * @method static Country sa() * @method static Country sn() * @method static Country rs() * @method static Country sc() * @method static Country sl() * @method static Country sg() * @method static Country sk() * @method static Country si() * @method static Country sb() * @method static Country so() * @method static Country za() * @method static Country gs() * @method static Country es() * @method static Country lk() * @method static Country sd() * @method static Country sr() * @method static Country sj() * @method static Country sz() * @method static Country se() * @method static Country ch() * @method static Country sy() * @method static Country tw() * @method static Country tj() * @method static Country tz() * @method static Country th() * @method static Country tg() * @method static Country tk() * @method static Country to() * @method static Country tt() * @method static Country tn() * @method static Country tr() * @method static Country tm() * @method static Country tc() * @method static Country tv() * @method static Country ug() * @method static Country ua() * @method static Country ae() * @method static Country gb() * @method static Country us() * @method static Country um() * @method static Country uy() * @method static Country uz() * @method static Country vu() * @method static Country ve() * @method static Country vn() * @method static Country vg() * @method static Country vi() * @method static Country wf() * @method static Country eh() * @method static Country ye() * @method static Country zm() * @method static Country zw()
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 * @method static Country af() * @method static Country al() * @method static Country dz() * @method static Country as() * @method static Country ad() * @method static Country ao() * @method static Country ai() * @method static Country aq() * @method static Country ag() * @method static Country ar() * @method static Country am() * @method static Country aw() * @method static Country au() * @method static Country at() * @method static Country az() * @method static Country bs() * @method static Country bh() * @method static Country bd() * @method static Country bb() * @method static Country by() * @method static Country be() * @method static Country bz() * @method static Country bj() * @method static Country bm() * @method static Country bt() * @method static Country bo() * @method static Country ba() * @method static Country bw() * @method static Country bv() * @method static Country br() * @method static Country io() * @method static Country bn() * @method static Country bg() * @method static Country bf() * @method static Country bi() * @method static Country kh() * @method static Country cm() * @method static Country ca() * @method static Country cv() * @method static Country ky() * @method static Country cf() * @method static Country td() * @method static Country cl() * @method static Country cn() * @method static Country cx() * @method static Country cc() * @method static Country co() * @method static Country km() * @method static Country cg() * @method static Country cd() * @method static Country ck() * @method static Country cr() * @method static Country ci() * @method static Country hr() * @method static Country cu() * @method static Country cy() * @method static Country cz() * @method static Country dk() * @method static Country dj() * @method static Country dm() * @method static Country do() * @method static Country tp() * @method static Country ec() * @method static Country eg() * @method static Country sv() * @method static Country gq() * @method static Country er() * @method static Country ee() * @method static Country et() * @method static Country fk() * @method static Country fo() * @method static Country fj() * @method static Country fi() * @method static Country fr() * @method static Country gf() * @method static Country pf() * @method static Country tf() * @method static Country ga() * @method static Country gm() * @method static Country ge() * @method static Country de() * @method static Country gh() * @method static Country gi() * @method static Country gr() * @method static Country gl() * @method static Country gd() * @method static Country gp() * @method static Country gu() * @method static Country gt() * @method static Country gn() * @method static Country gw() * @method static Country gy() * @method static Country ht() * @method static Country hm() * @method static Country va() * @method static Country hn() * @method static Country hk() * @method static Country hu() * @method static Country is() * @method static Country in() * @method static Country id() * @method static Country ir() * @method static Country iq() * @method static Country ie() * @method static Country il() * @method static Country it() * @method static Country jm() * @method static Country jp() * @method static Country jo() * @method static Country kz() * @method static Country ke() * @method static Country ki() * @method static Country kp() * @method static Country kr() * @method static Country kv() * @method static Country kw() * @method static Country kg() * @method static Country la() * @method static Country lv() * @method static Country lb() * @method static Country ls() * @method static Country lr() * @method static Country ly() * @method static Country li() * @method static Country lt() * @method static Country lu() * @method static Country mo() * @method static Country mk() * @method static Country mg() * @method static Country mw() * @method static Country my() * @method static Country mv() * @method static Country ml() * @method static Country mt() * @method static Country mh() * @method static Country mq() * @method static Country mr() * @method static Country mu() * @method static Country yt() * @method static Country mx() * @method static Country fm() * @method static Country md() * @method static Country mc() * @method static Country mn() * @method static Country ms() * @method static Country me() * @method static Country ma() * @method static Country mz() * @method static Country mm() * @method static Country na() * @method static Country nr() * @method static Country np() * @method static Country nl() * @method static Country an() * @method static Country nc() * @method static Country nz() * @method static Country ni() * @method static Country ne() * @method static Country ng() * @method static Country nu() * @method static Country nf() * @method static Country mp() * @method static Country no() * @method static Country om() * @method static Country pk() * @method static Country pw() * @method static Country ps() * @method static Country pa() * @method static Country pg() * @method static Country py() * @method static Country pe() * @method static Country ph() * @method static Country pn() * @method static Country pl() * @method static Country pt() * @method static Country pr() * @method static Country qa() * @method static Country re() * @method static Country ro() * @method static Country ru() * @method static Country rw() * @method static Country sh() * @method static Country kn() * @method static Country lc() * @method static Country pm() * @method static Country vc() * @method static Country ws() * @method static Country sm() * @method static Country st() * @method static Country sa() * @method static Country sn() * @method static Country rs() * @method static Country sc() * @method static Country sl() * @method static Country sg() * @method static Country sk() * @method static Country si() * @method static Country sb() * @method static Country so() * @method static Country za() * @method static Country gs() * @method static Country es() * @method static Country lk() * @method static Country sd() * @method static Country sr() * @method static Country sj() * @method static Country sz() * @method static Country se() * @method static Country ch() * @method static Country sy() * @method static Country tw() * @method static Country tj() * @method static Country tz() * @method static Country th() * @method static Country tg() * @method static Country tk() * @method static Country to() * @method static Country tt() * @method static Country tn() * @method static Country tr() * @method static Country tm() * @method static Country tc() * @method static Country tv() * @method static Country ug() * @method static Country ua() * @method static Country ae() * @method static Country gb() * @method static Country us() * @method static Country um() * @method static Country uy() * @method static Country uz() * @method static Country vu() * @method static Country ve() * @method static Country vn() * @method static Country vg() * @method static Country vi() * @method static Country wf() * @method static Country eh() * @method static Country ye() * @method static Country zm() * @method static Country zw()

preferences:
147.45 ms | 417 KiB | 135 Q