3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php func('vvv'); $getnews = false; function func($param) { return $param; } $recordList = array("aaa", "bbb", "ccc", "ddd"); $nary = array("10", "1", "100", "99"); $recordList = array("1", "2", "3"); $nary = array("15/6","15/12", "16/12"); array_multisort($nary, SORT_DESC , $recordList); echo mb_detect_encoding($nary[0]); var_dump($recordList); $nary = array("10", "1", "100", "99"); sort($nary, SORT_DESC); //var_dump($nary); ?>
based on EOqik
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
ASCIIarray(3) { [0]=> string(1) "3" [1]=> string(1) "1" [2]=> string(1) "2" }