3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { final public function a() { echo 1; } } class B extends A { public function b() { echo 2; } } $o = new B();
Output for 5.4.20
Fatal error: Cannot override final A::a() with B::b() in /in/NDfG7 on line 13
Process exited with code 255.
Output for 5.3.0 - 5.4.19
Fatal error: Cannot override final A::a() with B::b() in /in/8aX2C on line 13
Process exited with code 255.