3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { static function ho(){ static::ga(); } function ga(){} function gg(){} } A::ho(); class B extends A { static function ho(){ parent::gg(); } } B::ho();
based on Wlikg
Output for 7.0.0 - 7.3.0beta1
Deprecated: Non-static method A::ga() should not be called statically in /in/oXpcD on line 5 Deprecated: Non-static method A::gg() should not be called statically in /in/oXpcD on line 15
Output for 5.5.0 - 5.6.28
Strict Standards: Non-static method A::ga() should not be called statically in /in/oXpcD on line 5 Strict Standards: Non-static method A::gg() should not be called statically in /in/oXpcD on line 15