3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function bar() { return 'bar'; } public static function foo() { return self::bar(); } } var_dump(Foo::foo());
Output for 5.3.0 - 5.4.13
Fatal error: Constructor Foo::foo() cannot be static in /in/Etqaa on line 9
Process exited with code 255.