<?php
try {
array_merge([1, 2], a: [3, 4]);
} catch (ArgumentCountError $e) {
echo $e->getMessage();
}
- Output for 8.0.0 - 8.0.1, 8.1.1 - 8.1.33, 8.2.10 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
- array_merge() does not accept unknown named parameters
- Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.14
- Parse error: syntax error, unexpected ':', expecting ')' in /in/Cjfn1 on line 4
Process exited with code 255. - Output for 7.2.0 - 7.2.34
- Parse error: syntax error, unexpected ':', expecting ',' or ')' in /in/Cjfn1 on line 4
Process exited with code 255.
preferences:
81.76 ms | 408 KiB | 5 Q