string(6) "Works!"
Fatal error: Uncaught Error: Access to undeclared static property Foo\Space\Foo::$constant in /in/mT7NM:20
Stack trace:
#0 {main}
thrown in /in/mT7NM on line 20
Process exited with code 255.
string(6) "Works!"
Fatal error: Uncaught Error: Access to undeclared static property: Foo\Space\Foo::$constant in /in/mT7NM:20
Stack trace:
#0 {main}
thrown in /in/mT7NM on line 20
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in /in/mT7NM on line 20
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /in/mT7NM on line 13
Process exited with code 255.