3v4l.org

run code in 300+ PHP versions simultaneously
<?php $MainArray = array('PHILIPPINES' => array( 'SUPERIOR KING ROOM' => array( '2021-12-05' => array('total' => 1, 'revenue' => 600.00), '2021-12-06' => array('total' => 4, 'revenue' => 534.00), ), '3D KING ROOM' => array( '2021-12-05' => array('total' => 3, 'revenue' => 320.00), '2021-12-06' => array('total' => 1, 'revenue' => 0.00) ), ), 'AUSTRALIA' => array( 'PRESIDENTIAL SUITE' => array('2021-12-05' => array('total' => 4, 'revenue' => 888.00)), 'DELUXE ROOM' => array('2021-12-06' => array('total' => 1, 'revenue' => 0.00)), ), ); /* sort by country name */ foreach ($MainArray as $key => $country){ $ord[] = $key; } array_multisort($ord, SORT_ASC, $MainArray); print_r($MainArray );
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [AUSTRALIA] => Array ( [PRESIDENTIAL SUITE] => Array ( [2021-12-05] => Array ( [total] => 4 [revenue] => 888 ) ) [DELUXE ROOM] => Array ( [2021-12-06] => Array ( [total] => 1 [revenue] => 0 ) ) ) [PHILIPPINES] => Array ( [SUPERIOR KING ROOM] => Array ( [2021-12-05] => Array ( [total] => 1 [revenue] => 600 ) [2021-12-06] => Array ( [total] => 4 [revenue] => 534 ) ) [3D KING ROOM] => Array ( [2021-12-05] => Array ( [total] => 3 [revenue] => 320 ) [2021-12-06] => Array ( [total] => 1 [revenue] => 0 ) ) ) )

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:
89.2 ms | 409 KiB | 5 Q