3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=array("2009-01-01 00:00:00", "2008-01-01 00:00:00", "0000-00-00 00:00:00", "0000-00-00 00:00:00", "0000-00-00 00:00:00", "2006-01-01 00:00:00", "2006-01-01 00:00:00"); print_r($array); sort($array,SORT_STRING); print_r($array); $array=array_reverse($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 2009-01-01 00:00:00 [1] => 2008-01-01 00:00:00 [2] => 0000-00-00 00:00:00 [3] => 0000-00-00 00:00:00 [4] => 0000-00-00 00:00:00 [5] => 2006-01-01 00:00:00 [6] => 2006-01-01 00:00:00 ) Array ( [0] => 0000-00-00 00:00:00 [1] => 0000-00-00 00:00:00 [2] => 0000-00-00 00:00:00 [3] => 2006-01-01 00:00:00 [4] => 2006-01-01 00:00:00 [5] => 2008-01-01 00:00:00 [6] => 2009-01-01 00:00:00 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.66 ms | 402 KiB | 8 Q