3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function foo() { echo 'foo'; } static function fooStatic() { echo 'static'; } } $bar = new Test; $bar::foo(); $bar->fooStatic();
Output for 7.3.0rc3
Deprecated: Non-static method Test::foo() should not be called statically in /in/YT4LF on line 14 foostatic