3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $arr["my_account"]["ACH"]["ICE-1010"]["nro"] = 20; $arr["my_account"]["LK"]["AN-1011"]["nro"] = 30; $arr["i2-ACH"]["LT"]["SAE-1210"]["nro"] = 40; $arr["i2-ACH"]["ACH"]["ICE-1010"]["nro"] = 50; $arr["i2-Conn"]["CM"]["CM-1012"]["nro"] = 60; $arr["i2-Conn"]["LA"]["LA-1013"]["nro"] = 70; $arr["i2-Conn"]["LM"]["LM-1014"]["nro"] = 80; $arr["i2-Ecom"]["DW"]["DW-1015"]["nro"] = 90;*/ //ksort($arr["i2-ACH"],SORT_STRING); //print_r($arr["i2-ACH"]); $array = array(10,20,15,2,3,1,9,11,21); arsort($array,SORT_NUMERIC); print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [8] => 21 [1] => 20 [2] => 15 [7] => 11 [0] => 10 [6] => 9 [4] => 3 [3] => 2 [5] => 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:
66.5 ms | 401 KiB | 8 Q