3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface IFoo { public function bar(); } class Foo { public function bar() { echo 'hier'; } } clas FooAdapter implements IFoo { protected $foo; public function __construct() { $this->foo = new Foo(); } public function bar() { $this->foo->bar(); } } $foo = new FooAdapter(); $foo->bar();
Output for 5.4.0 - 5.5.0
Parse error: syntax error, unexpected 'FooAdapter' (T_STRING) in /in/VYvMd on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_STRING in /in/VYvMd on line 16
Process exited with code 255.