3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo {} interface Bar {} function name((Foo&Bar)|null $foo): string { return (string) $foo; }
Output for 8.3.5 - 8.3.30, 8.4.9 - 8.4.18, 8.5.2 - 8.5.3
Output for 8.1.34
Parse error: syntax error, unexpected token "(", expecting variable in /in/lZYkm on line 6
Process exited with code 255.

preferences:
54.48 ms | 479 KiB | 5 Q