3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $original_ids = array(1, 2, 3, 4); //<--- Original values without sorted. $sorted_ids = array(4, 1, 3); //<--- Fixed values (sort by this) $result_ids = array(); //<--- The result array after sorted var_dump($result_ids);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(0) { }