3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump (range (' ', '2'));
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> int(0) [1]=> int(1) [2]=> int(2) }
Output for 4.3.0 - 4.4.9
array(19) { [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" }