3v4l.org

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