3v4l.org

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

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