3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php abstract class Foo { abstract function test() { echo 'bar'; } } class Bar extends Foo { function test() { echo 'baz'; } } $test = new Bar; $test->test();
Output for 5.2.15 - 5.4.19
Fatal error: Abstract function Foo::test() cannot contain body in /in/4G9PQ on line 8
Process exited with code 255.