3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface C { public function foo(); } class A implements C { public function foo(array $test = array()) { var_dump($test); } } class B extends A { public function foo() { parent::foo(); } } $b = new B; $b->foo();
based on sFCXe
Output for 7.2.0
Fatal error: Declaration of B::foo() must be compatible with A::foo(array $test = Array) in /in/KmBnl on line 16
Process exited with code 255.
Output for 5.3.20 - 7.1.10
array(0) { }