3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { public function t1() { echo $this->t2(); } public static function t2() { return "Test"; } } class Test2 extends Test { public function t2() { return "Test2"; } } $t = new Test2; $t->t1();
Output for 5.3.0 - 5.4.23
Fatal error: Cannot make static method Test::t2() non static in class Test2 in /in/V06Yr on line 12
Process exited with code 255.