3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(['0'] + range('A', 'Z'));
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(26) { [0]=> string(1) "0" [1]=> string(1) "B" [2]=> string(1) "C" [3]=> string(1) "D" [4]=> string(1) "E" [5]=> string(1) "F" [6]=> string(1) "G" [7]=> string(1) "H" [8]=> string(1) "I" [9]=> string(1) "J" [10]=> string(1) "K" [11]=> string(1) "L" [12]=> string(1) "M" [13]=> string(1) "N" [14]=> string(1) "O" [15]=> string(1) "P" [16]=> string(1) "Q" [17]=> string(1) "R" [18]=> string(1) "S" [19]=> string(1) "T" [20]=> string(1) "U" [21]=> string(1) "V" [22]=> string(1) "W" [23]=> string(1) "X" [24]=> string(1) "Y" [25]=> string(1) "Z" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/55G3V on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ')' in /in/55G3V on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/55G3V on line 2
Process exited with code 255.