3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface Concrete { public $a = null; protected function foo(); } class Bar { } abstract class AbsConcrete implements Concrete { abstract protected function foo(); } class Customer extends AbsConcrete { public function init() { echo "init\n"; } public function foo( Bar $me = null, Bar $lala = null ) { echo "foo\n"; } } $customer = new Customer; $customer->init(); $customer->foo( new Bar, new Bar );
Output for 5.3.0 - 5.4.21
Fatal error: Interfaces may not include member variables in /in/cSimO on line 3
Process exited with code 255.