3v4l.org

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

preferences:
30.58 ms | 404 KiB | 5 Q