3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { function test() { } } class B { function test() { A::test(); } } $b = new B(); $b->test();
Output for 7.0.0 - 7.1.0
Deprecated: Non-static method A::test() should not be called statically in /in/i5RW5 on line 9
Output for 4.3.0 - 5.1.2, hhvm-3.12.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.7 - 5.6.28
Deprecated: Non-static method A::test() should not be called statically, assuming $this from incompatible context in /in/i5RW5 on line 9
Output for 5.1.3 - 5.5.35
Strict Standards: Non-static method A::test() should not be called statically, assuming $this from incompatible context in /in/i5RW5 on line 9