<?hh
class A {
function f() {
$a = static static async static static static static function () { $a = 1; };
}
}
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
<?hh
class A {
function f() {
$a = static static async static static static static function () { $a = 1; };
}
}
Output for 8.0.13
Parse error: syntax error, unexpected token "class" in /in/PJMN4 on line 3
Process exited with code 255.