3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { function __construct(int $i); } class X implements I { function __construct(int $i) {} } // Fatal error: Declaration of Yy::__construct(string $a) must be // compatible with I::__construct(int $i) class Y extends X { function __construct(string $a) {} } ?>
Output for git.master, git.master_jit
Fatal error: Declaration of Y::__construct(string $a) must be compatible with I::__construct(int $i) in /in/5qeE1 on line 15
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
59.87 ms | 867 KiB | 4 Q