3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static function staticFunc() { echo "static"; } public function instanceFunc() { echo "instance"; } } A::instanceFunc(); $a = new A(); $a->staticFunc();
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method A::instanceFunc() should not be called statically in /in/4WrOX on line 13 instancestatic
Output for 5.3.21 - 5.6.28
Strict Standards: Non-static method A::instanceFunc() should not be called statically in /in/4WrOX on line 13 instancestatic