3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(' ', '~'); var_dump($range);
based on HKF6Z
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(95) { [0]=> string(1) " " [1]=> string(1) "!" [2]=> string(1) """ [3]=> string(1) "#" [4]=> string(1) "$" [5]=> string(1) "%" [6]=> string(1) "&" [7]=> string(1) "'" [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) "*" [11]=> string(1) "+" [12]=> string(1) "," [13]=> string(1) "-" [14]=> string(1) "." [15]=> string(1) "/" [16]=> string(1) "0" [17]=> string(1) "1" [18]=> string(1) "2" [19]=> string(1) "3" [20]=> string(1) "4" [21]=> string(1) "5" [22]=> string(1) "6" [23]=> string(1) "7" [24]=> string(1) "8" [25]=> string(1) "9" [26]=> string(1) ":" [27]=> string(1) ";" [28]=> string(1) "<" [29]=> string(1) "=" [30]=> string(1) ">" [31]=> string(1) "?" [32]=> string(1) "@" [33]=> string(1) "A" [34]=> string(1) "B" [35]=> string(1) "C" [36]=> string(1) "D" [37]=> string(1) "E" [38]=> string(1) "F" [39]=> string(1) "G" [40]=> string(1) "H" [41]=> string(1) "I" [42]=> string(1) "J" [43]=> string(1) "K" [44]=> string(1) "L" [45]=> string(1) "M" [46]=> string(1) "N" [47]=> string(1) "O" [48]=> string(1) "P" [49]=> string(1) "Q" [50]=> string(1) "R" [51]=> string(1) "S" [52]=> string(1) "T" [53]=> string(1) "U" [54]=> string(1) "V" [55]=> string(1) "W" [56]=> string(1) "X" [57]=> string(1) "Y" [58]=> string(1) "Z" [59]=> string(1) "[" [60]=> string(1) "\" [61]=> string(1) "]" [62]=> string(1) "^" [63]=> string(1) "_" [64]=> string(1) "`" [65]=> string(1) "a" [66]=> string(1) "b" [67]=> string(1) "c" [68]=> string(1) "d" [69]=> string(1) "e" [70]=> string(1) "f" [71]=> string(1) "g" [72]=> string(1) "h" [73]=> string(1) "i" [74]=> string(1) "j" [75]=> string(1) "k" [76]=> string(1) "l" [77]=> string(1) "m" [78]=> string(1) "n" [79]=> string(1) "o" [80]=> string(1) "p" [81]=> string(1) "q" [82]=> string(1) "r" [83]=> string(1) "s" [84]=> string(1) "t" [85]=> string(1) "u" [86]=> string(1) "v" [87]=> string(1) "w" [88]=> string(1) "x" [89]=> string(1) "y" [90]=> string(1) "z" [91]=> string(1) "{" [92]=> string(1) "|" [93]=> string(1) "}" [94]=> string(1) "~" }