array(3) {
[0]=>
bool(true)
[1]=>
bool(false)
[2]=>
bool(true)
}
################################################################################
array(3) {
[0]=>
bool(false)
[1]=>
bool(false)
[2]=>
bool(false)
}
################################################################################
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be of the type string, boolean given, called in /in/SJKe1 on line 24 and defined in /in/SJKe1:20
Stack trace:
#0 /in/SJKe1(24): foo(false)
#1 {main}
thrown in /in/SJKe1 on line 20
Process exited with code 255.
Warning: Unsupported declare 'strict_types' in /in/SJKe1 on line 2
array(3) {
[0]=>
bool(true)
[1]=>
bool(false)
[2]=>
bool(true)
}
################################################################################
array(3) {
[0]=>
bool(false)
[1]=>
bool(false)
[2]=>
bool(false)
}
################################################################################
Catchable fatal error: Argument 1 passed to foo() must be an instance of string, boolean given, called in /in/SJKe1 on line 24 and defined in /in/SJKe1 on line 20
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Warning: Unsupported declare 'strict_types' in /in/SJKe1 on line 2
Parse error: syntax error, unexpected '[', expecting ')' in /in/SJKe1 on line 4
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
array(3) {
[0]=>
bool(true)
[1]=>
bool(false)
[2]=>
bool(true)
}
################################################################################
array(3) {
[0]=>
bool(false)
[1]=>
bool(false)
[2]=>
bool(false)
}
################################################################################
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be of the type string, bool given, called in /in/SJKe1 on line 24 and defined in /in/SJKe1:20
Stack trace:
#0 /in/SJKe1(24): foo(false)
#1 {main}
thrown in /in/SJKe1 on line 20
Process exited with code 255.
array(3) {
[0]=>
bool(true)
[1]=>
bool(false)
[2]=>
bool(true)
}
################################################################################
array(3) {
[0]=>
bool(false)
[1]=>
bool(false)
[2]=>
bool(false)
}
################################################################################
Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type string, bool given, called in /in/SJKe1 on line 24 and defined in /in/SJKe1:20
Stack trace:
#0 /in/SJKe1(24): foo(false)
#1 {main}
thrown in /in/SJKe1 on line 20
Process exited with code 255.
array(3) {
[0]=>
bool(true)
[1]=>
bool(false)
[2]=>
bool(true)
}
################################################################################
array(3) {
[0]=>
bool(false)
[1]=>
bool(false)
[2]=>
bool(false)
}
################################################################################
Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type string, false given, called in /in/SJKe1 on line 24 and defined in /in/SJKe1:20
Stack trace:
#0 /in/SJKe1(24): foo(false)
#1 {main}
thrown in /in/SJKe1 on line 20
Process exited with code 255.