3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "21-07-2017" => ['a'], "04-09-2017" => ['b'], "27-07-2017" => ['c'], "31-07-2017" => ['d'], "01-08-2017" => ['e'], "05-09-2017" => ['f'], "15-09-2017" => ['g'], ]; uksort($array, function($a, $b) { return strtotime($a) <=> strtotime($b);}); var_export($array);
Output for git.master, git.master_jit, rfc.property-hooks
array ( '21-07-2017' => array ( 0 => 'a', ), '27-07-2017' => array ( 0 => 'c', ), '31-07-2017' => array ( 0 => 'd', ), '01-08-2017' => array ( 0 => 'e', ), '04-09-2017' => array ( 0 => 'b', ), '05-09-2017' => array ( 0 => 'f', ), '15-09-2017' => array ( 0 => 'g', ), )

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:
26.72 ms | 406 KiB | 5 Q