3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ function test(){ $arr = array(1,2,3,4,5,6,7); function mySort($a,$b){ return $a-$b; } usort($arr,'mySort'); } } $t = new Test(); $t->test();

preferences:
61.42 ms | 402 KiB | 5 Q