Fatal error: Uncaught Error: Non-static method A::test() cannot be called statically in /in/TD7L6:10
Stack trace:
#0 /in/TD7L6(16): B->foo()
#1 {main}
thrown in /in/TD7L6 on line 10
Process exited with code 255.
Deprecated: Non-static method A::test() should not be called statically in /in/TD7L6 on line 10
Fatal error: Uncaught Error: Using $this when not in object context in /in/TD7L6:4
Stack trace:
#0 /in/TD7L6(10): A::test()
#1 /in/TD7L6(16): B->foo()
#2 {main}
thrown in /in/TD7L6 on line 4
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Fatal error: Uncaught Error: Using $this when not in object context in /in/TD7L6:4
Stack trace:
#0 /in/TD7L6(10): A::test()
#1 /in/TD7L6(16): B->foo()
#2 {main}
thrown in /in/TD7L6 on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.33
Deprecated: Non-static method A::test() should not be called statically in /in/TD7L6 on line 10
Notice: Undefined variable: this in /in/TD7L6 on line 4
bool(false)
Output for 5.6.0 - 5.6.40
Deprecated: Non-static method A::test() should not be called statically, assuming $this from incompatible context in /in/TD7L6 on line 10
bool(false)
Strict Standards: Non-static method A::test() should not be called statically, assuming $this from incompatible context in /in/TD7L6 on line 10
bool(false)
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.2
bool(false)
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/TD7L6 on line 3
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/TD7L6 on line 3
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/TD7L6 on line 3
Process exited with code 255.