3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(range('2007-01', '2015-12'));
Output for 4.3.0 - 4.3.2, 5.0.0 - 7.2.0
array(1) { [0]=> string(1) "2" }
Output for 4.3.3 - 4.4.9
array(9) { [0]=> int(2007) [1]=> int(2008) [2]=> int(2009) [3]=> int(2010) [4]=> int(2011) [5]=> int(2012) [6]=> int(2013) [7]=> int(2014) [8]=> int(2015) }