3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array("5","3","21"), array("0.5","3","may"), array("2.2","3","sport"), ); //print_r($array); function subval_sort($a,$subkey) { foreach($a as $k=>$v) { $b[$k] = strtolower($v[$subkey]); } asort($b); foreach($b as $key=>$val) { $c[] = $a[$key]; } return $c; } $result = subval_sort($array, 0); print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 0.5 [1] => 3 [2] => may ) [1] => Array ( [0] => 2.2 [1] => 3 [2] => sport ) [2] => Array ( [0] => 5 [1] => 3 [2] => 21 ) )

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