int(1)
int(2)
Warning: Undefined variable $x in /in/F08Xe on line 5
Fatal error: Uncaught TypeError: Unsupported operand types: null & Foo in /in/F08Xe:5
Stack trace:
#0 /in/F08Xe(15): Foo->bar2(Object(Foo))
#1 {main}
thrown in /in/F08Xe on line 5
Process exited with code 255.
int(1)
int(2)
Notice: Undefined variable: x in /in/F08Xe on line 5
Notice: Object of class Foo could not be converted to int in /in/F08Xe on line 5
int(1)
int(2)
Output for 7.3.32 - 7.3.33, 7.4.26
int(1)
int(2)
int(1)
int(2)
Output for 5.0.4 - 5.0.5
int(1)
int(2)
Notice: Undefined variable: x in /in/F08Xe on line 5
int(1)
int(2)
Output for 5.0.0 - 5.0.3
int(1)
int(2)
Notice: Undefined variable: x in /in/F08Xe on line 5
int(1)
int(2)
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/F08Xe 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/F08Xe 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/F08Xe on line 3
Process exited with code 255.