Deprecated: Creation of dynamic property foo::$a is deprecated in /in/7rTqE on line 6
Deprecated: Creation of dynamic property foo::$b is deprecated in /in/7rTqE on line 7
Deprecated: Creation of dynamic property foo::$val is deprecated in /in/7rTqE on line 8
hello
hi
howdy
howdy
Warning: Undefined variable $x in /in/7rTqE on line 28
Deprecated: Creation of dynamic property foo::$ is deprecated in /in/7rTqE on line 28
Warning: Undefined variable $x in /in/7rTqE on line 31
5
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
hello
hi
howdy
howdy
Warning: Undefined variable $x in /in/7rTqE on line 28
Warning: Undefined variable $x in /in/7rTqE on line 31
5
hello
hi
howdy
howdy
Notice: Undefined variable: x in /in/7rTqE on line 28
Notice: Undefined variable: x in /in/7rTqE on line 31
5
Output for 7.3.32 - 7.3.33, 7.4.26
hello
hi
howdy
howdy5
Output for 7.0.0 - 7.0.20
hello
hi
howdy
howdy
Notice: Undefined variable: x in /in/7rTqE on line 28
Fatal error: Uncaught Error: Cannot access empty property in /in/7rTqE:28
Stack trace:
#0 /in/7rTqE(24): foo->setX(5)
#1 /in/7rTqE(36): foo->__construct()
#2 {main}
thrown in /in/7rTqE on line 28
Process exited with code 255.
hello
hi
howdy
howdy
Notice: Undefined variable: x in /in/7rTqE on line 28
Fatal error: Cannot access empty property in /in/7rTqE on line 28
Process exited with code 255.
Output for 5.0.0 - 5.0.3
hello
hi
howdy
howdy
Notice: Undefined variable: x in /in/7rTqE on line 28
Notice: Undefined variable: x in /in/7rTqE on line 31
5
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/7rTqE 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/7rTqE 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/7rTqE on line 3
Process exited with code 255.