3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ['a', 'b']; usort($array, function ($firstValue, $secondValue) { echo "COMPARING: {$firstValue} with {$secondValue}\n"; return -1;});

preferences:
107.94 ms | 1992 KiB | 5 Q