3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrTags = [ 'mango' => 2, 'orange' => 4, 'apple' => 2, 'banana' => 3, 'peach' => 3, 'strawberry' => 3, 'blueberry' => 3, 'raspberry' => 3, 'lychee' => 2, 'fig' => 1, 'guava' => 1, 'grape' => 3, 'watermelon' => 2, 'kiwi' => 5, 'pear' => 3 ]; uksort($arrTags, fn($a, $b) => [$arrTags[$b], $a] <=> [$arrTags[$a], $b]); var_export($arrTags);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'kiwi' => 5, 'orange' => 4, 'banana' => 3, 'blueberry' => 3, 'grape' => 3, 'peach' => 3, 'pear' => 3, 'raspberry' => 3, 'strawberry' => 3, 'apple' => 2, 'lychee' => 2, 'mango' => 2, 'watermelon' => 2, 'fig' => 1, 'guava' => 1, )

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:
46.9 ms | 402 KiB | 8 Q