3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Results = array( "Matchings" => array( array("Quotient"=>0.5) ) ); echo "<pre>".print_r($Results, true)."</pre>"; $Results["Matchings"] = uasort($Results["Matchings"], function($a, $b){ if($a["Quotient"] == $b["Quotient"]) { return 0; } return ($a["Quotient"] > $b["Quotient"] ? 1 : -1); }); die("<pre>".print_r($Results, true)."</pre>");

preferences:
38.25 ms | 402 KiB | 5 Q