Notice: Only variable references should be returned by reference in /in/WZMga on line 4
Notice: Indirect modification of overloaded property X::$foo has no effect in /in/WZMga on line 8
foo
Output for 5.0.4 - 5.0.5
Strict Standards: Only variable references should be returned by reference in /in/WZMga on line 4
foo
Output for 5.0.0 - 5.0.3
Fatal error: Cannot access undefined property for object with overloaded property access in /in/WZMga on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0, 4.4.2 - 4.4.9
Warning: key(): Passed variable is not an array or object in /in/WZMga on line 8
Output for 4.4.1
Notice: Undefined property: foo in /in/WZMga on line 8
Warning: key(): Passed variable is not an array or object in /in/WZMga on line 8
Output for 4.3.0 - 4.3.1
Warning: key() [http://www.php.net/function.key]: Passed variable is not an array or object in /in/WZMga on line 8