3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); abstract class A { abstract public function __construct(array $a, array $cv); } class B extends A { public function __construct(stdClass $b) {} } new B(new stdClass);
based on Xd4v7
Output for 7.0.0
Fatal error: Declaration of B::__construct(stdClass $b) must be compatible with A::__construct(array $a, array $cv) in /in/A5g2R on line 15
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Fatal error: Declaration of B::__construct() must be compatible with A::__construct(array $a, array $cv) in /in/A5g2R on line 15
Process exited with code 255.
Output for 5.3.20 - 5.3.29