3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo((A&B)|A $p) {}
Output for 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Type A&B is redundant as it is more restrictive than type A in /in/1heQE on line 3
Process exited with code 255.
Output for 8.1.0 - 8.1.28
Parse error: syntax error, unexpected token "(", expecting variable in /in/1heQE on line 3
Process exited with code 255.

preferences:
49.59 ms | 726 KiB | 3 Q