3v4l.org

run code in 300+ PHP versions simultaneously
<?php $alliances = [ ['id' => 1, 'output' => '1', 'score' => 10], ['id' => 2, 'output' => '0', 'score' => 9], ['id' => 3, 'output' => '1', 'score' => 11], ['id' => 4, 'output' => '1', 'score' => 9], ['id' => 5, 'output' => '0', 'score' => 10], ]; array_multisort(...[array_column($alliances, 'output'), SORT_DESC, array_column($alliances, 'score'), SORT_DESC, &$alliances]); var_export($alliances);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'id' => 3, 'output' => '1', 'score' => 11, ), 1 => array ( 'id' => 1, 'output' => '1', 'score' => 10, ), 2 => array ( 'id' => 4, 'output' => '1', 'score' => 9, ), 3 => array ( 'id' => 5, 'output' => '0', 'score' => 10, ), 4 => array ( 'id' => 2, 'output' => '0', 'score' => 9, ), )

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