3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array("2009-02-14", "2007-12-12", "2014-02-02"); var_dump($array); sort($array); var_dump($array); echo array_pop($array); var_dump($array);
Output for 4.3.0 - 7.1.0
array(3) { [0]=> string(10) "2009-02-14" [1]=> string(10) "2007-12-12" [2]=> string(10) "2014-02-02" } array(3) { [0]=> string(10) "2007-12-12" [1]=> string(10) "2009-02-14" [2]=> string(10) "2014-02-02" } 2014-02-02array(2) { [0]=> string(10) "2007-12-12" [1]=> string(10) "2009-02-14" }