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