- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- descendant's public var
Notice: Accessing static property Descendant::$staticVar as non static in /in/l8Gj2 on line 57
Warning: Undefined property: Descendant::$staticVar in /in/l8Gj2 on line 57
descendant's static var
ancestor's static var
descendant's static var
this is descendant's public method
publicMethod is in object context
this is descendant's static method
staticMethod is in static context
this is descendant's static method
staticMethod is in static context
Fatal error: Uncaught Error: Non-static method Descendant::publicMethod() cannot be called statically in /in/l8Gj2:70
Stack trace:
#0 {main}
thrown in /in/l8Gj2 on line 70
Process exited with code 255. - Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
- descendant's public var Notice: Accessing static property Descendant::$staticVar as non static in /in/l8Gj2 on line 57 Notice: Undefined property: Descendant::$staticVar in /in/l8Gj2 on line 57 descendant's static var ancestor's static var descendant's static var this is descendant's public method publicMethod is in object context this is descendant's static method staticMethod is in static context this is descendant's static method staticMethod is in static context Deprecated: Non-static method Descendant::publicMethod() should not be called statically in /in/l8Gj2 on line 70 this is descendant's public method publicMethod is in static context
- Output for 7.3.32 - 7.3.33
- descendant's public var descendant's static var ancestor's static var descendant's static var this is descendant's public method publicMethod is in object context this is descendant's static method staticMethod is in static context this is descendant's static method staticMethod is in static context this is descendant's public method publicMethod is in static context
- Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
- descendant's public var Strict Standards: Accessing static property Descendant::$staticVar as non static in /in/l8Gj2 on line 57 Notice: Undefined property: Descendant::$staticVar in /in/l8Gj2 on line 57 descendant's static var ancestor's static var descendant's static var this is descendant's public method publicMethod is in object context this is descendant's static method staticMethod is in static context this is descendant's static method staticMethod is in static context Strict Standards: Non-static method Descendant::publicMethod() should not be called statically in /in/l8Gj2 on line 70 this is descendant's public method publicMethod is in static context