3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface IMyInterface1 { public $var1; public function test(array $params); } interface IMyInterface2 { public function test(array $params); } abstract class MyClass implements IMyInterface1, IMyInterface2 { public abstract function test(array $params); } /* class MyClass implements IMyInterface1, IMyInterface2 { public function test(array $params) { echo '1'; } } $v = new MyClass; $v->test(array()); */
Output for 5.3.0 - 5.4.25
Fatal error: Interfaces may not include member variables in /in/0ZG1f on line 4
Process exited with code 255.