3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo(string $s = null, string ...$j) { } } class Bar extends Foo { public function doFoo(string $s = null, string ...$j, $k = null) { } }
Output for 7.2.0 - 7.2.31, 7.3.0 - 7.3.18, 7.4.0 - 7.4.6
Fatal error: Only the last parameter can be variadic in /in/Y3UJ2 on line 16
Process exited with code 255.

preferences:
150.29 ms | 1435 KiB | 7 Q