3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [1,2,3,4,5,6,1,2,3,4,5,6]; $f = function($a,$b) { return $a < $b ? 1 : ($a > $b ? -1 : 0); }; uasort($a, $f); print_r($a);