3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrTags = [ 'mango' => 2, 'orange' => 4, 'apple' => 2, 'banana' => 3, 'guava' => 1, 'grape' => 3, 'watermelon' => 2, 'kiwi' => 5, 'pear' => 3 ]; $k = array_keys($arrTags); $v = array_values($arrTags); array_multisort($k, SORT_ASC, $v, SORT_DESC); var_export(array_combine($k, $v));
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'apple' => 2, 'banana' => 3, 'grape' => 3, 'guava' => 1, 'kiwi' => 5, 'mango' => 2, 'orange' => 4, 'pear' => 3, 'watermelon' => 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:
159.3 ms | 405 KiB | 5 Q