3v4l.org

run code in 300+ PHP versions simultaneously
<?php // this $b-$a is for desc, for asc try $a-$b function sorting_by_count($a, $b) { return trim($b['expiry_date']['count'],'()') - trim($a['expiry_date']['count'],'()'); } $array = [ [ 'certificate_name' => 'track.site', 'domains' => 'track.site', 'expiry_date' => [ 'date' => '2018-09-25', 'time' => '10:11:58', 'count' => '(22)', ] ], [ 'certificate_name' => 'stats.com', 'domains' => 'stats.com', 'expiry_date' => [ 'date' => '2018-09-24', 'time' => '10:11:58', 'count' => '(43)', ] ] ]; usort($array, 'sorting_by_count'); print_r($array); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [certificate_name] => stats.com [domains] => stats.com [expiry_date] => Array ( [date] => 2018-09-24 [time] => 10:11:58 [count] => (43) ) ) [1] => Array ( [certificate_name] => track.site [domains] => track.site [expiry_date] => Array ( [date] => 2018-09-25 [time] => 10:11:58 [count] => (22) ) ) )

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:
163.2 ms | 407 KiB | 5 Q