3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=[1, 4, 5, 3, 2] usort($a, function($a, $b) { return $a > $b ; }); print_r($a);
Output for 8.0.0 - 8.0.3
Parse error: syntax error, unexpected identifier "usort" in /in/RdI0m on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.27, 7.4.0 - 7.4.16
Parse error: syntax error, unexpected 'usort' (T_STRING) in /in/RdI0m on line 3
Process exited with code 255.

preferences:
183.01 ms | 1395 KiB | 56 Q