Fatal error: Uncaught Error: Non-static method A::test() cannot be called statically in /in/n7elb:13
Stack trace:
#0 {main}
thrown in /in/n7elb on line 13
Process exited with code 255.
Deprecated: Non-static method A::test() should not be called statically in /in/n7elb on line 13
Warning: Use of undefined constant self - assumed 'self' (this will throw an Error in a future version of PHP) in /in/n7elb on line 6
string(4) "self"
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
Deprecated: Non-static method A::test() should not be called statically in /in/n7elb on line 13
Notice: Use of undefined constant self - assumed 'self' in /in/n7elb on line 6
string(4) "self"
Strict Standards: Non-static method A::test() should not be called statically in /in/n7elb on line 13
Notice: Use of undefined constant self - assumed 'self' in /in/n7elb on line 6
string(4) "self"
Output for 5.0.0 - 5.0.3
Fatal error: Cannot redeclare property static public A::$i in class B in /in/n7elb on line 12
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/n7elb on line 4
Process exited with code 255.
Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/n7elb on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/n7elb on line 4
Process exited with code 255.