3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A{ function b(){ echo 'aaa' . PHP_EOL; } } $a = new A(); $a->b(); A::b();
based on XAoEJ
Output for 7.0.0 - 7.2.0
aaa Deprecated: Non-static method A::b() should not be called statically in /in/TrZff on line 10 aaa
Output for 5.3.19 - 5.6.28
aaa Strict Standards: Non-static method A::b() should not be called statically in /in/TrZff on line 10 aaa