3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ArrayReturn { public function getDependencies(): array; } interface IterableReturn extends ArrayReturn { public function getDependencies(): iterable; }
Output for 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
Fatal error: Declaration of IterableReturn::getDependencies(): Traversable|array must be compatible with ArrayReturn::getDependencies(): array in /in/B7gTS on line 10
Process exited with code 255.
Output for 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29
Fatal error: Declaration of IterableReturn::getDependencies(): iterable must be compatible with ArrayReturn::getDependencies(): array in /in/B7gTS on line 10
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
Fatal error: Declaration of IterableReturn::getDependencies(): iterable must be compatible with ArrayReturn::getDependencies(): array in /in/B7gTS on line 8
Process exited with code 255.

preferences:
85.89 ms | 409 KiB | 5 Q