3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(in_array(haystack: [1, 2, 3], ?)(2));
Output for 8.0.0 - 8.0.3
Parse error: syntax error, unexpected token "?", expecting ")" in /in/CtqaK on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.28, 7.4.0 - 7.4.16
Parse error: syntax error, unexpected ':', expecting ')' in /in/CtqaK on line 3
Process exited with code 255.

preferences:
181.52 ms | 1395 KiB | 57 Q