3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [['11-01-2012', 1], ['01-01-2014', 2], ['01-01-2015', 3], ['09-02-2013', 4], ['01-01-2013', 5]]; function date_sort($a, $b) { return strtotime($a[0]) - strtotime($b[0]); } usort($arr, "date_sort"); print_r($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 11-01-2012 [1] => 1 ) [1] => Array ( [0] => 01-01-2013 [1] => 5 ) [2] => Array ( [0] => 09-02-2013 [1] => 4 ) [3] => Array ( [0] => 01-01-2014 [1] => 2 ) [4] => Array ( [0] => 01-01-2015 [1] => 3 ) )

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:
69.02 ms | 402 KiB | 8 Q