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"], "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); }

preferences:
49.18 ms | 402 KiB | 5 Q