3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 125 => '3110 - with a string', 128 => '3009 - keep a string', 126 => '3111 - a string', 121 => '3114 - be a string', 122 => '3113 - last string', ]; function cmp($a, $b) { return strcmp(trim(explode('-',$a)[1]) ,trim(explode('-',$b)[1])); } usort($array, "cmp"); print_r($array);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => 3111 - a string [1] => 3114 - be a string [2] => 3009 - keep a string [3] => 3113 - last string [4] => 3110 - with a string )

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:
28.34 ms | 405 KiB | 5 Q