3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Abstraction { function method(Array $f = Array(), $concrete_param); } class Concrete implements Abstraction { function method($f, $concrete_param) {} }
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Deprecated: Optional parameter $f declared before required parameter $concrete_param is implicitly treated as a required parameter in /in/21HAr on line 4
Output for 8.0.0 - 8.0.30
Deprecated: Required parameter $concrete_param follows optional parameter $f in /in/21HAr on line 4
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Fatal error: Declaration of Concrete::method($f, $concrete_param) must be compatible with Abstraction::method(array $f, $concrete_param) in /in/21HAr on line 7
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Declaration of Concrete::method() must be compatible with Abstraction::method(array $f, $concrete_param) in /in/21HAr on line 7
Process exited with code 255.

preferences:
255.27 ms | 402 KiB | 330 Q