string(3) "foo"
string(3) "foo"
Deprecated: Creation of dynamic property DOMElement::$foo is deprecated in /in/TM9fV on line 15
Deprecated: Creation of dynamic property DOMElement::$foo is deprecated in /in/TM9fV on line 16
int(12)
Warning: Undefined property: DOMElement::$foo in /in/TM9fV on line 24
NULL
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
string(3) "foo"
string(3) "foo"
int(12)
Warning: Undefined property: DOMElement::$foo in /in/TM9fV on line 24
NULL
string(3) "foo"
string(3) "foo"
int(12)
Notice: Undefined property: DOMElement::$foo in /in/TM9fV on line 24
NULL
Output for 5.1.3
string(3) "foo"
Warning: main(): Invalid State Error in /in/TM9fV on line 10
Notice: Trying to get property of non-object in /in/TM9fV on line 10
NULL
int(12)
Warning: main(): Invalid State Error in /in/TM9fV on line 24
Notice: Trying to get property of non-object in /in/TM9fV on line 24
NULL
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_VARIABLE in /in/TM9fV on line 7
Process exited with code 255.