3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array( '2014-10-11 12:35:42', '2014-10-23 10:27:08', '2014-10-11 12:26:59' ); var_dump($a); arsort($a); var_dump($a);
based on Q400i
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> string(19) "2014-10-11 12:35:42" [1]=> string(19) "2014-10-23 10:27:08" [2]=> string(19) "2014-10-11 12:26:59" } array(3) { [1]=> string(19) "2014-10-23 10:27:08" [0]=> string(19) "2014-10-11 12:35:42" [2]=> string(19) "2014-10-11 12:26:59" }
Output for hhvm-3.10.0

Process exited with code 153.