3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $Results = array( "Matchings" => array( array("Quotient"=>0.5) ) ); echo "<pre>".print_r($Results, true)."</pre>"; $Results["Matchings"] = uasort($Results["Matchings"], "sort_cmp"); die("<pre>".print_r($Results, true)."</pre>"); function sort_cmp($a, $b){ echo "<pre>".print_r(array($a, $b), true)."</pre>"; if($a["Quotient"] == $b["Quotient"]) { return 0; } return ($a["Quotient"] > $b["Quotient"] ? 1 : -1); }
based on QeEgk
Output for 4.3.0 - 7.1.0
<pre>Array ( [Matchings] => Array ( [0] => Array ( [Quotient] => 0.5 ) ) ) </pre><pre>Array ( [Matchings] => 1 ) </pre>