3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { function f() { echo "butts"; } } class B { function f() { A::f(); } } $b = new B; $b->f();
Output for 7.0.0 - 7.1.0
Deprecated: Non-static method A::f() should not be called statically in /in/MpPUF on line 7 butts
Output for 4.3.0 - 5.1.2, hhvm-3.10.0 - 3.12.0
butts
Output for 5.6.0 - 5.6.28
Deprecated: Non-static method A::f() should not be called statically, assuming $this from incompatible context in /in/MpPUF on line 7 butts
Output for 5.1.3 - 5.5.38
Strict Standards: Non-static method A::f() should not be called statically, assuming $this from incompatible context in /in/MpPUF on line 7 butts