Calling main()
Calling a->pub
Entering a::pub
string(11) "public in a"
Leaving a::pub
Calling x->pub
Entering x::pub
Deprecated: Non-static method a::pub() should not be called statically in /in/v9UnE on line 16
Entering a::pub
Fatal error: Uncaught Error: Using $this when not in object context in /in/v9UnE:7
Stack trace:
#0 /in/v9UnE(16): a::pub()
#1 /in/v9UnE(28): x->pub()
#2 /in/v9UnE(32): main()
#3 {main}
thrown in /in/v9UnE on line 7
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Calling main()
Calling a->pub
Entering a::pub
string(11) "public in a"
Leaving a::pub
Calling x->pub
Entering x::pub
Entering a::pub
Fatal error: Uncaught Error: Using $this when not in object context in /in/v9UnE:7
Stack trace:
#0 /in/v9UnE(16): a::pub()
#1 /in/v9UnE(28): x->pub()
#2 /in/v9UnE(32): main()
#3 {main}
thrown in /in/v9UnE on line 7
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Calling main()
Calling a->pub
Entering a::pub
string(11) "public in a"
Leaving a::pub
Calling x->pub
Entering x::pub
Deprecated: Non-static method a::pub() should not be called statically, assuming $this from incompatible context in /in/v9UnE on line 16
Entering a::pub
string(11) "public in x"
Leaving a::pub
Leaving x::pub
Done
Calling main()
Calling a->pub
Entering a::pub
string(11) "public in a"
Leaving a::pub
Calling x->pub
Entering x::pub
Strict Standards: Non-static method a::pub() should not be called statically, assuming $this from incompatible context in /in/v9UnE on line 16
Entering a::pub
string(11) "public in x"
Leaving a::pub
Leaving x::pub
Done
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/v9UnE on line 4
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/v9UnE 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/v9UnE on line 4
Process exited with code 255.