3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface i { public function __invoke( ...$args ); } class e implements i { public function __invoke( $a, $b, ...$args ) {} }
Output for 7.0.0 - 7.2.0
Fatal error: Declaration of e::__invoke($a, $b, ...$args) must be compatible with i::__invoke(...$args) in /in/WUsGp on line 7
Process exited with code 255.
Output for 5.6.8 - 5.6.21
Fatal error: Declaration of e::__invoke() must be compatible with i::__invoke(...$args) in /in/WUsGp on line 7
Process exited with code 255.
Output for 5.4.12 - 5.5.35
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/WUsGp on line 4
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '.', expecting '&' or T_VARIABLE in /in/WUsGp on line 4
Process exited with code 255.