3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = [ 'aaaa', 'bbbb', 'ccccccc', 'dddddddddd', 'eeeeeeee', 'ffffffffffff', 'gggg', 'hhhhhh', 'iiiiiiiiiii', 'lllllll', 'mmmmmmmmmmm', 'nnnnnnn', 'ooo', ]; usort($v, function($a, $b){ return mb_strlen($b) <=> mb_strlen($a); }); var_dump($v);
Output for git.master, git.master_jit, rfc.property-hooks
array(13) { [0]=> string(12) "ffffffffffff" [1]=> string(11) "iiiiiiiiiii" [2]=> string(11) "mmmmmmmmmmm" [3]=> string(10) "dddddddddd" [4]=> string(8) "eeeeeeee" [5]=> string(7) "ccccccc" [6]=> string(7) "lllllll" [7]=> string(7) "nnnnnnn" [8]=> string(6) "hhhhhh" [9]=> string(4) "aaaa" [10]=> string(4) "bbbb" [11]=> string(4) "gggg" [12]=> string(3) "ooo" }

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