3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $kw = array(array('v' => 1, 'n' => 'a'), array('v' => 2, 'n' => 'b'), array('v' => 100, 'n' => 'c')); foreach($kw as $kw_key => $kw_data){ $v[$kw_key] = $kw_data['v']; } array_multisort($v, SORT_DESC, $kw); print_r($kw);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [v] => 100 [n] => c ) [1] => Array ( [v] => 2 [n] => b ) [2] => Array ( [v] => 1 [n] => a ) )
Output for hhvm-3.10.0

Process exited with code 153.