3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cou = array("Afghanistan","Albania","Algeria","Andorra","Angola","Antigua & Deps","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Rep","Chad","Chile","China","Colombia","Comoros","Congo","Congo {Democratic Rep}","Costa Rica","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland {Republic}","Israel","Italy","Ivory Coast","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea North","Korea South","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar, {Burma}","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russian Federation","Rwanda","St Kitts & Nevis","St Lucia","Saint Vincent & the Grenadines","Samoa","San Marino","Sao Tome & Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad & Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"); //print_r($cou); function filterarr($var) { return strtolower($var); } print_r(array_filter($cou, "filterarr"));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Afghanistan [1] => Albania [2] => Algeria [3] => Andorra [4] => Angola [5] => Antigua & Deps [6] => Argentina [7] => Armenia [8] => Australia [9] => Austria [10] => Azerbaijan [11] => Bahamas [12] => Bahrain [13] => Bangladesh [14] => Barbados [15] => Belarus [16] => Belgium [17] => Belize [18] => Benin [19] => Bhutan [20] => Bolivia [21] => Bosnia Herzegovina [22] => Botswana [23] => Brazil [24] => Brunei [25] => Bulgaria [26] => Burkina [27] => Burundi [28] => Cambodia [29] => Cameroon [30] => Canada [31] => Cape Verde [32] => Central African Rep [33] => Chad [34] => Chile [35] => China [36] => Colombia [37] => Comoros [38] => Congo [39] => Congo {Democratic Rep} [40] => Costa Rica [41] => Croatia [42] => Cuba [43] => Cyprus [44] => Czech Republic [45] => Denmark [46] => Djibouti [47] => Dominica [48] => Dominican Republic [49] => East Timor [50] => Ecuador [51] => Egypt [52] => El Salvador [53] => Equatorial Guinea [54] => Eritrea [55] => Estonia [56] => Ethiopia [57] => Fiji [58] => Finland [59] => France [60] => Gabon [61] => Gambia [62] => Georgia [63] => Germany [64] => Ghana [65] => Greece [66] => Grenada [67] => Guatemala [68] => Guinea [69] => Guinea-Bissau [70] => Guyana [71] => Haiti [72] => Honduras [73] => Hungary [74] => Iceland [75] => India [76] => Indonesia [77] => Iran [78] => Iraq [79] => Ireland {Republic} [80] => Israel [81] => Italy [82] => Ivory Coast [83] => Jamaica [84] => Japan [85] => Jordan [86] => Kazakhstan [87] => Kenya [88] => Kiribati [89] => Korea North [90] => Korea South [91] => Kosovo [92] => Kuwait [93] => Kyrgyzstan [94] => Laos [95] => Latvia [96] => Lebanon [97] => Lesotho [98] => Liberia [99] => Libya [100] => Liechtenstein [101] => Lithuania [102] => Luxembourg [103] => Macedonia [104] => Madagascar [105] => Malawi [106] => Malaysia [107] => Maldives [108] => Mali [109] => Malta [110] => Marshall Islands [111] => Mauritania [112] => Mauritius [113] => Mexico [114] => Micronesia [115] => Moldova [116] => Monaco [117] => Mongolia [118] => Montenegro [119] => Morocco [120] => Mozambique [121] => Myanmar, {Burma} [122] => Namibia [123] => Nauru [124] => Nepal [125] => Netherlands [126] => New Zealand [127] => Nicaragua [128] => Niger [129] => Nigeria [130] => Norway [131] => Oman [132] => Pakistan [133] => Palau [134] => Panama [135] => Papua New Guinea [136] => Paraguay [137] => Peru [138] => Philippines [139] => Poland [140] => Portugal [141] => Qatar [142] => Romania [143] => Russian Federation [144] => Rwanda [145] => St Kitts & Nevis [146] => St Lucia [147] => Saint Vincent & the Grenadines [148] => Samoa [149] => San Marino [150] => Sao Tome & Principe [151] => Saudi Arabia [152] => Senegal [153] => Serbia [154] => Seychelles [155] => Sierra Leone [156] => Singapore [157] => Slovakia [158] => Slovenia [159] => Solomon Islands [160] => Somalia [161] => South Africa [162] => South Sudan [163] => Spain [164] => Sri Lanka [165] => Sudan [166] => Suriname [167] => Swaziland [168] => Sweden [169] => Switzerland [170] => Syria [171] => Taiwan [172] => Tajikistan [173] => Tanzania [174] => Thailand [175] => Togo [176] => Tonga [177] => Trinidad & Tobago [178] => Tunisia [179] => Turkey [180] => Turkmenistan [181] => Tuvalu [182] => Uganda [183] => Ukraine [184] => United Arab Emirates [185] => United Kingdom [186] => United States [187] => Uruguay [188] => Uzbekistan [189] => Vanuatu [190] => Vatican City [191] => Venezuela [192] => Vietnam [193] => Yemen [194] => Zambia [195] => Zimbabwe )