3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class C { public function a() { echo __METHOD__ . "\n"; } public static function b() { echo __METHOD__ . "\n"; } } C::a(); $a = new C(); $a->b();
based on S5dPV
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method C::a() should not be called statically in /in/nqfOe on line 16 C::a C::b
Output for 5.3.19 - 5.6.28
Strict Standards: Non-static method C::a() should not be called statically in /in/nqfOe on line 16 C::a C::b