3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($aaa):?object { return new self::class; } var_dump(foo(123));
Output for 7.3.0rc3
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting variable (T_VARIABLE) or '$' in /in/KfKDh on line 3
Process exited with code 255.