3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface Dog { public function woof(); } class Terrier implements Dog { public function woof() { echo 'woof'; } } class Staffie extends Terrier() { } $dog = new Staffie(); $dog->woof();
Output for 5.2.15 - 5.4.21
Parse error: syntax error, unexpected '(', expecting '{' in /in/1UAbr on line 13
Process exited with code 255.