Fatal error: Uncaught Error: Non-static method foo::aa() cannot be called statically in /in/RRPsR:13
Stack trace:
#0 {main}
thrown in /in/RRPsR on line 13
Process exited with code 255.
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in /in/RRPsR on line 2
Deprecated: Non-static method foo::aa() should not be called statically in /in/RRPsR on line 13
ok
Deprecated: Non-static method foo::aa() should not be called statically in /in/RRPsR on line 16
ok
Fatal error: Uncaught Error: Non-static method foo::Foo() cannot be called statically in /in/RRPsR:18
Stack trace:
#0 {main}
thrown in /in/RRPsR on line 18
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.26
ok
ok
Fatal error: Uncaught Error: Non-static method foo::Foo() cannot be called statically in /in/RRPsR:18
Stack trace:
#0 {main}
thrown in /in/RRPsR on line 18
Process exited with code 255.
Strict Standards: Non-static method foo::aa() should not be called statically in /in/RRPsR on line 13
ok
Strict Standards: Non-static method foo::aa() should not be called statically in /in/RRPsR on line 16
ok
Fatal error: Non-static method foo::Foo() cannot be called statically in /in/RRPsR on line 18
Process exited with code 255.
Output for 5.2.0 - 5.2.1
Strict Standards: Non-static method foo::aa() should not be called statically in /in/RRPsR on line 13
ok
Strict Standards: Non-static method foo::aa() should not be called statically in /in/RRPsR on line 16
ok
Process exited with code 139.
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/RRPsR 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/RRPsR 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/RRPsR on line 3
Process exited with code 255.