3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class blah { public function create() { return new static(); } public static function test() { echo 'test'; } } $blah = blah::create(); $blah->test();
based on tZRij
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method blah::create() should not be called statically in /in/nsjlI on line 13 test
Output for 5.3.18 - 5.6.28
Strict Standards: Non-static method blah::create() should not be called statically in /in/nsjlI on line 13 test