array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
Fatal error: Uncaught Error: array_push(): Argument #1 ($array) could not be passed by reference in /in/kucGt:5
Stack trace:
#0 {main}
thrown in /in/kucGt on line 5
Process exited with code 255.
Output for 8.1.23 - 8.1.28, 8.2.10 - 8.2.18
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
Fatal error: Uncaught Error: array_push(): Argument #1 ($array) cannot be passed by reference in /in/kucGt:5
Stack trace:
#0 {main}
thrown in /in/kucGt on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.34
Fatal error: Arrays are not allowed as constants in /in/kucGt on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/kucGt on line 3
Process exited with code 255.