3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [3, 1, 2]; $b = [4, 5, 6]; usort($a, function() { usort($b, function() { return 0; } return 1; });
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected 'return' (T_RETURN), expecting ',' or ')' in /in/apXsZ on line 10
Process exited with code 255.
Output for 5.4.12 - 5.6.17
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/apXsZ on line 10
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/apXsZ on line 3
Process exited with code 255.