3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dir = '/usr/share/locale'; $files1 = scandir($dir); print_r($files1);
Output for 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.14 - 7.1.0
Array ( [0] => . [1] => .. [2] => af [3] => am [4] => an [5] => anp [6] => ar [7] => as [8] => ast [9] => az [10] => bal [11] => be [12] => be@latin [13] => bg [14] => bn [15] => bn_IN [16] => bo [17] => br [18] => brx [19] => bs [20] => ca [21] => ca.us-ascii [22] => ca@valencia [23] => cs [24] => cy [25] => da [26] => de [27] => de.us-ascii [28] => de_AT [29] => de_CH [30] => dz [31] => el [32] => en@boldquot [33] => en@quot [34] => en@shaw [35] => en_CA [36] => en_GB [37] => en_US [38] => eo [39] => es [40] => et [41] => eu [42] => fa [43] => fi [44] => fr [45] => ga [46] => gd [47] => gl [48] => gu [49] => he [50] => hi [51] => hr [52] => hu [53] => hy [54] => ia [55] => id [56] => ilo [57] => is [58] => it [59] => ja [60] => ka [61] => kk [62] => km [63] => kn [64] => ko [65] => ku [66] => kw [67] => kw@kkcor [68] => kw@uccor [69] => kw_GB [70] => ky [71] => lg [72] => locale.alias [73] => lt [74] => lv [75] => mai [76] => mg [77] => mk [78] => ml [79] => mn [80] => mr [81] => ms [82] => my [83] => nb [84] => nds [85] => ne [86] => nl [87] => nn [88] => no.us-ascii [89] => nso [90] => oc [91] => or [92] => pa [93] => pl [94] => ps [95] => pt [96] => pt.us-ascii [97] => pt_BR [98] => pt_BR.us-ascii [99] => ro [100] => ru [101] => rw [102] => si [103] => sk [104] => sl [105] => sl_SI [106] => sq [107] => sr [108] => sr@ije [109] => sr@latin [110] => sv [111] => ta [112] => te [113] => tg [114] => th [115] => tl [116] => tr [117] => tt [118] => tw [119] => ug [120] => uk [121] => ur [122] => vi [123] => wa [124] => wba [125] => xh [126] => yi [127] => yo [128] => zh_CN [129] => zh_HK [130] => zh_TW [131] => zu )
Output for 5.0.0 - 5.6.25, 7.0.0 - 7.0.10
Array ( [0] => . [1] => .. [2] => af [3] => am [4] => an [5] => ar [6] => as [7] => ast [8] => az [9] => bal [10] => be [11] => be@latin [12] => bg [13] => bn [14] => bn_IN [15] => br [16] => bs [17] => ca [18] => ca.us-ascii [19] => ca@valencia [20] => cs [21] => cy [22] => da [23] => de [24] => de.us-ascii [25] => de_AT [26] => dz [27] => el [28] => en@boldquot [29] => en@quot [30] => en@shaw [31] => en_CA [32] => en_GB [33] => en_US [34] => eo [35] => es [36] => et [37] => eu [38] => fa [39] => fi [40] => fr [41] => ga [42] => gd [43] => gl [44] => gu [45] => he [46] => hi [47] => hr [48] => hu [49] => hy [50] => ia [51] => id [52] => is [53] => it [54] => ja [55] => ka [56] => kk [57] => km [58] => kn [59] => ko [60] => ks [61] => ku [62] => ky [63] => lg [64] => locale.alias [65] => lt [66] => lv [67] => mai [68] => mg [69] => mk [70] => ml [71] => mn [72] => mr [73] => ms [74] => nb [75] => nds [76] => ne [77] => nl [78] => nn [79] => no.us-ascii [80] => oc [81] => or [82] => pa [83] => pl [84] => ps [85] => pt [86] => pt.us-ascii [87] => pt_BR [88] => pt_BR.us-ascii [89] => ro [90] => ru [91] => rw [92] => si [93] => sk [94] => sl [95] => sl_SI [96] => sq [97] => sr [98] => sr@ije [99] => sr@latin [100] => sv [101] => ta [102] => te [103] => tg [104] => th [105] => tl [106] => tr [107] => tt [108] => ug [109] => uk [110] => ur [111] => vi [112] => wa [113] => xh [114] => yi [115] => zh_CN [116] => zh_HK [117] => zh_TW [118] => zu )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: scandir() in /in/PrXhu on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: scandir() in /in/PrXhu on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: scandir() in /in/PrXhu on line 3