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("aaa", "bbb"); $nary = array("15/12","15/6"); array_multisort($nary, SORT_DESC , $recordList); var_dump($recordList); $nary = array("10", "1", "100", "99"); sort($nary, SORT_DESC); //var_dump($nary); ?>
based on OlDLW
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
array(2) { [0]=> string(3) "bbb" [1]=> string(3) "aaa" }