3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class A { abstract function lol(...$args); } class B extends A { function lol(bool $a, string $c) : array{ var_dump("asddsa"); return []; } } var_dump((new B())->lol(true, "asd"));

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Arrow functions
Fatal error: Declaration of B::lol(bool $a, string $c): array must be compatible with A::lol(...$args) in /in/SscP9 on line 12

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