3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function wtf() { var_dump($this); } } class B extends A { public function wtf() { A::wtf(); } } $b = new B(); $b->a();
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
Fatal error: Cannot make static method A::wtf() non static in class B in /in/Al1lk on line 13
Process exited with code 255.

preferences:
207.97 ms | 1399 KiB | 58 Q