3v4l.org

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