3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array( 'Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica (the territory South of 60 deg S)', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Bouvet Island (Bouvetoya)', 'Brazil', 'British Indian Ocean Territory (Chagos Archipelago)', 'British Virgin Islands', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Costa Rica', 'Cote d\'Ivoire', 'Croatia', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Djibouti', 'Dominica', 'Dominican Republic', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Faroe Islands', 'Falkland Islands (Malvinas)', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern Territories', 'Gabon', 'Gambia', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard Island and McDonald Islands', 'Holy See (Vatican City State)', 'Honduras', 'Hong Kong', 'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Isle of Man', 'Israel', 'Italy', 'Jamaica', 'Japan', 'Jersey', 'Jordan', 'Kazakhstan', 'Kenya', 'Kiribati', 'Korea', 'Korea', 'Kuwait', 'Kyrgyz Republic', 'Lao People\'s Democratic Republic', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libyan Arab Jamahiriya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macao', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia', 'Moldova', 'Monaco', 'Mongolia', 'Montenegro', 'Montserrat', 'Morocco', 'Mozambique', 'Myanmar', 'Namibia', 'Nauru', 'Nepal', 'Netherlands Antilles', 'Netherlands', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island', 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Palestinian Territory', 'Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn Islands', 'Polska', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russian Federation', 'Rwanda', 'Saint Barthelemy', 'Saint Helena', 'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Martin', 'Saint Pierre and Miquelon', 'Saint Vincent and the Grenadines', 'Samoa', 'San Marino', 'Sao Tome and Principe', 'Saudi Arabia', 'Senegal', 'Serbia', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia (Slovak Republic)', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia and the South Sandwich Islands', 'Spain', 'Sri Lanka', 'Sudan', 'Suriname', 'Svalbard & Jan Mayen Islands', 'Swaziland', 'Sweden', 'Switzerland', 'Syrian Arab Republic', 'Taiwan', 'Tajikistan', 'Tanzania', 'Thailand', 'Timor-Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad and Tobago', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks and Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States of America', 'United States Minor Outlying Islands', 'United States Virgin Islands', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela', 'Vietnam', 'Wallis and Futuna', 'Western Sahara', 'Yemen', 'Zambia', 'Zimbabwe' ));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(244) { [0]=> string(11) "Afghanistan" [1]=> string(7) "Albania" [2]=> string(7) "Algeria" [3]=> string(14) "American Samoa" [4]=> string(7) "Andorra" [5]=> string(6) "Angola" [6]=> string(8) "Anguilla" [7]=> string(44) "Antarctica (the territory South of 60 deg S)" [8]=> string(19) "Antigua and Barbuda" [9]=> string(9) "Argentina" [10]=> string(7) "Armenia" [11]=> string(5) "Aruba" [12]=> string(9) "Australia" [13]=> string(7) "Austria" [14]=> string(10) "Azerbaijan" [15]=> string(7) "Bahamas" [16]=> string(7) "Bahrain" [17]=> string(10) "Bangladesh" [18]=> string(8) "Barbados" [19]=> string(7) "Belarus" [20]=> string(7) "Belgium" [21]=> string(6) "Belize" [22]=> string(5) "Benin" [23]=> string(7) "Bermuda" [24]=> string(6) "Bhutan" [25]=> string(7) "Bolivia" [26]=> string(22) "Bosnia and Herzegovina" [27]=> string(8) "Botswana" [28]=> string(25) "Bouvet Island (Bouvetoya)" [29]=> string(6) "Brazil" [30]=> string(51) "British Indian Ocean Territory (Chagos Archipelago)" [31]=> string(22) "British Virgin Islands" [32]=> string(17) "Brunei Darussalam" [33]=> string(8) "Bulgaria" [34]=> string(12) "Burkina Faso" [35]=> string(7) "Burundi" [36]=> string(8) "Cambodia" [37]=> string(8) "Cameroon" [38]=> string(6) "Canada" [39]=> string(10) "Cape Verde" [40]=> string(14) "Cayman Islands" [41]=> string(24) "Central African Republic" [42]=> string(4) "Chad" [43]=> string(5) "Chile" [44]=> string(5) "China" [45]=> string(16) "Christmas Island" [46]=> string(23) "Cocos (Keeling) Islands" [47]=> string(8) "Colombia" [48]=> string(7) "Comoros" [49]=> string(5) "Congo" [50]=> string(12) "Cook Islands" [51]=> string(10) "Costa Rica" [52]=> string(13) "Cote d'Ivoire" [53]=> string(7) "Croatia" [54]=> string(4) "Cuba" [55]=> string(6) "Cyprus" [56]=> string(14) "Czech Republic" [57]=> string(7) "Denmark" [58]=> string(8) "Djibouti" [59]=> string(8) "Dominica" [60]=> string(18) "Dominican Republic" [61]=> string(7) "Ecuador" [62]=> string(5) "Egypt" [63]=> string(11) "El Salvador" [64]=> string(17) "Equatorial Guinea" [65]=> string(7) "Eritrea" [66]=> string(7) "Estonia" [67]=> string(8) "Ethiopia" [68]=> string(13) "Faroe Islands" [69]=> string(27) "Falkland Islands (Malvinas)" [70]=> string(4) "Fiji" [71]=> string(7) "Finland" [72]=> string(6) "France" [73]=> string(13) "French Guiana" [74]=> string(16) "French Polynesia" [75]=> string(27) "French Southern Territories" [76]=> string(5) "Gabon" [77]=> string(6) "Gambia" [78]=> string(7) "Georgia" [79]=> string(7) "Germany" [80]=> string(5) "Ghana" [81]=> string(9) "Gibraltar" [82]=> string(6) "Greece" [83]=> string(9) "Greenland" [84]=> string(7) "Grenada" [85]=> string(10) "Guadeloupe" [86]=> string(4) "Guam" [87]=> string(9) "Guatemala" [88]=> string(8) "Guernsey" [89]=> string(6) "Guinea" [90]=> string(13) "Guinea-Bissau" [91]=> string(6) "Guyana" [92]=> string(5) "Haiti" [93]=> string(33) "Heard Island and McDonald Islands" [94]=> string(29) "Holy See (Vatican City State)" [95]=> string(8) "Honduras" [96]=> string(9) "Hong Kong" [97]=> string(7) "Hungary" [98]=> string(7) "Iceland" [99]=> string(5) "India" [100]=> string(9) "Indonesia" [101]=> string(4) "Iran" [102]=> string(4) "Iraq" [103]=> string(7) "Ireland" [104]=> string(11) "Isle of Man" [105]=> string(6) "Israel" [106]=> string(5) "Italy" [107]=> string(7) "Jamaica" [108]=> string(5) "Japan" [109]=> string(6) "Jersey" [110]=> string(6) "Jordan" [111]=> string(10) "Kazakhstan" [112]=> string(5) "Kenya" [113]=> string(8) "Kiribati" [114]=> string(5) "Korea" [115]=> string(5) "Korea" [116]=> string(6) "Kuwait" [117]=> string(15) "Kyrgyz Republic" [118]=> string(32) "Lao People's Democratic Republic" [119]=> string(6) "Latvia" [120]=> string(7) "Lebanon" [121]=> string(7) "Lesotho" [122]=> string(7) "Liberia" [123]=> string(22) "Libyan Arab Jamahiriya" [124]=> string(13) "Liechtenstein" [125]=> string(9) "Lithuania" [126]=> string(10) "Luxembourg" [127]=> string(5) "Macao" [128]=> string(9) "Macedonia" [129]=> string(10) "Madagascar" [130]=> string(6) "Malawi" [131]=> string(8) "Malaysia" [132]=> string(8) "Maldives" [133]=> string(4) "Mali" [134]=> string(5) "Malta" [135]=> string(16) "Marshall Islands" [136]=> string(10) "Martinique" [137]=> string(10) "Mauritania" [138]=> string(9) "Mauritius" [139]=> string(7) "Mayotte" [140]=> string(6) "Mexico" [141]=> string(10) "Micronesia" [142]=> string(7) "Moldova" [143]=> string(6) "Monaco" [144]=> string(8) "Mongolia" [145]=> string(10) "Montenegro" [146]=> string(10) "Montserrat" [147]=> string(7) "Morocco" [148]=> string(10) "Mozambique" [149]=> string(7) "Myanmar" [150]=> string(7) "Namibia" [151]=> string(5) "Nauru" [152]=> string(5) "Nepal" [153]=> string(20) "Netherlands Antilles" [154]=> string(11) "Netherlands" [155]=> string(13) "New Caledonia" [156]=> string(11) "New Zealand" [157]=> string(9) "Nicaragua" [158]=> string(5) "Niger" [159]=> string(7) "Nigeria" [160]=> string(4) "Niue" [161]=> string(14) "Norfolk Island" [162]=> string(24) "Northern Mariana Islands" [163]=> string(6) "Norway" [164]=> string(4) "Oman" [165]=> string(8) "Pakistan" [166]=> string(5) "Palau" [167]=> string(21) "Palestinian Territory" [168]=> string(6) "Panama" [169]=> string(16) "Papua New Guinea" [170]=> string(8) "Paraguay" [171]=> string(4) "Peru" [172]=> string(11) "Philippines" [173]=> string(16) "Pitcairn Islands" [174]=> string(6) "Polska" [175]=> string(8) "Portugal" [176]=> string(11) "Puerto Rico" [177]=> string(5) "Qatar" [178]=> string(7) "Reunion" [179]=> string(7) "Romania" [180]=> string(18) "Russian Federation" [181]=> string(6) "Rwanda" [182]=> string(16) "Saint Barthelemy" [183]=> string(12) "Saint Helena" [184]=> string(21) "Saint Kitts and Nevis" [185]=> string(11) "Saint Lucia" [186]=> string(12) "Saint Martin" [187]=> string(25) "Saint Pierre and Miquelon" [188]=> string(32) "Saint Vincent and the Grenadines" [189]=> string(5) "Samoa" [190]=> string(10) "San Marino" [191]=> string(21) "Sao Tome and Principe" [192]=> string(12) "Saudi Arabia" [193]=> string(7) "Senegal" [194]=> string(6) "Serbia" [195]=> string(10) "Seychelles" [196]=> string(12) "Sierra Leone" [197]=> string(9) "Singapore" [198]=> string(26) "Slovakia (Slovak Republic)" [199]=> string(8) "Slovenia" [200]=> string(15) "Solomon Islands" [201]=> string(7) "Somalia" [202]=> string(12) "South Africa" [203]=> string(44) "South Georgia and the South Sandwich Islands" [204]=> string(5) "Spain" [205]=> string(9) "Sri Lanka" [206]=> string(5) "Sudan" [207]=> string(8) "Suriname" [208]=> string(28) "Svalbard & Jan Mayen Islands" [209]=> string(9) "Swaziland" [210]=> string(6) "Sweden" [211]=> string(11) "Switzerland" [212]=> string(20) "Syrian Arab Republic" [213]=> string(6) "Taiwan" [214]=> string(10) "Tajikistan" [215]=> string(8) "Tanzania" [216]=> string(8) "Thailand" [217]=> string(11) "Timor-Leste" [218]=> string(4) "Togo" [219]=> string(7) "Tokelau" [220]=> string(5) "Tonga" [221]=> string(19) "Trinidad and Tobago" [222]=> string(7) "Tunisia" [223]=> string(6) "Turkey" [224]=> string(12) "Turkmenistan" [225]=> string(24) "Turks and Caicos Islands" [226]=> string(6) "Tuvalu" [227]=> string(6) "Uganda" [228]=> string(7) "Ukraine" [229]=> string(20) "United Arab Emirates" [230]=> string(14) "United Kingdom" [231]=> string(24) "United States of America" [232]=> string(36) "United States Minor Outlying Islands" [233]=> string(28) "United States Virgin Islands" [234]=> string(7) "Uruguay" [235]=> string(10) "Uzbekistan" [236]=> string(7) "Vanuatu" [237]=> string(9) "Venezuela" [238]=> string(7) "Vietnam" [239]=> string(17) "Wallis and Futuna" [240]=> string(14) "Western Sahara" [241]=> string(5) "Yemen" [242]=> string(6) "Zambia" [243]=> string(8) "Zimbabwe" }