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:
94.18 ms | 1980 KiB | 5 Q