3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $years = array(14) { [1]=> string(4) "2000", [2]=> string(4) "2001", [3]=> string(4) "2002", [4]=> string(4) "2003", [5]=> string(4) "2004", [6]=> string(4) "2005", [7]=> string(4) "2006", [8]=> string(4) "2007", [9]=> string(4) "2008", [10]=> string(4) "2009", [11]=> string(4) "2010", [12]=> string(4) "2011", [13]=> string(4) "2012", [14]=> string(4) "2013", } var_dump($years); var_dump(rsort($years)); var_dump(krsort($years)); ?>
Output for 5.3.0 - 5.4.10
Parse error: syntax error, unexpected '{' in s9vHW on line 2
Process exited with code 255.