3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sort3210ASC($a, $b) { if ($a[3] !== $b[3]) return $a[3] <=> $b[3]; if ($a[2] !== $b[2]) return $a[2] <=> $b[2]; if ($a[1] !== $b[1]) return $a[1] <=> $b[1]; if ($a[0] !== $b[0]) return $a[0] <=> $b[0]; return 0; } $dud = [[2,3,"2018-07-19","08:23",1], [2,3,"2018-07-19","08:30",2], [2,1,"2018-07-19","08:14",3], [2,4,"2018-07-19","07:11",4], [2,1,"2018-07-19","07:17",5], [2,9,"2018-07-19","07:31",6], [2,4,"2018-07-19","05:06",7], [2,6,"2018-07-18","08:10",8], [2,9,"2018-07-19","07:20",9], [1,7,"2018-07-19","08:27",10], [1,5,"2018-07-19","08:11",11], [1,7,"2018-07-18","08:22",12], [1,5,"2018-07-19","08:09",13], [2,6,"2018-07-18","07:12",14], [1,7,"2018-07-18","08:21",15], [1,7,"2018-07-19","07:09",16]]; usort($dud, 'sort3210ASC'); var_export($dud);
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => array ( 0 => 2, 1 => 4, 2 => '2018-07-19', 3 => '05:06', 4 => 7, ), 1 => array ( 0 => 1, 1 => 7, 2 => '2018-07-19', 3 => '07:09', 4 => 16, ), 2 => array ( 0 => 2, 1 => 4, 2 => '2018-07-19', 3 => '07:11', 4 => 4, ), 3 => array ( 0 => 2, 1 => 6, 2 => '2018-07-18', 3 => '07:12', 4 => 14, ), 4 => array ( 0 => 2, 1 => 1, 2 => '2018-07-19', 3 => '07:17', 4 => 5, ), 5 => array ( 0 => 2, 1 => 9, 2 => '2018-07-19', 3 => '07:20', 4 => 9, ), 6 => array ( 0 => 2, 1 => 9, 2 => '2018-07-19', 3 => '07:31', 4 => 6, ), 7 => array ( 0 => 1, 1 => 5, 2 => '2018-07-19', 3 => '08:09', 4 => 13, ), 8 => array ( 0 => 2, 1 => 6, 2 => '2018-07-18', 3 => '08:10', 4 => 8, ), 9 => array ( 0 => 1, 1 => 5, 2 => '2018-07-19', 3 => '08:11', 4 => 11, ), 10 => array ( 0 => 2, 1 => 1, 2 => '2018-07-19', 3 => '08:14', 4 => 3, ), 11 => array ( 0 => 1, 1 => 7, 2 => '2018-07-18', 3 => '08:21', 4 => 15, ), 12 => array ( 0 => 1, 1 => 7, 2 => '2018-07-18', 3 => '08:22', 4 => 12, ), 13 => array ( 0 => 2, 1 => 3, 2 => '2018-07-19', 3 => '08:23', 4 => 1, ), 14 => array ( 0 => 1, 1 => 7, 2 => '2018-07-19', 3 => '08:27', 4 => 10, ), 15 => array ( 0 => 2, 1 => 3, 2 => '2018-07-19', 3 => '08:30', 4 => 2, ), )

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:
21.28 ms | 405 KiB | 8 Q