------------
true
!empty() = bool(true)
count() =
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, true given in /in/1mkY5:14
Stack trace:
#0 {main}
thrown in /in/1mkY5 on line 14
Process exited with code 255.
------------
true
!empty() = bool(true)
count() =
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /in/1mkY5:14
Stack trace:
#0 {main}
thrown in /in/1mkY5 on line 14
Process exited with code 255.
Output for 8.0.0 - 8.0.9
------------
true
!empty() = bool(true)
count() =
Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, bool given in /in/1mkY5:14
Stack trace:
#0 {main}
thrown in /in/1mkY5 on line 14
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
------------
true
!empty() = bool(true)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(1)
------------
false
!empty() = bool(false)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(1)
------------
NULL
!empty() = bool(false)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(0)
------------
'string'
!empty() = bool(true)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(1)
------------
array (
)
!empty() = bool(false)
count() = int(0)
------------
array (
0 => 1,
)
!empty() = bool(true)
count() = int(1)
------------
array (
0 => 1,
1 => 2,
2 => 3,
)
!empty() = bool(true)
count() = int(3)
------------
(object) array(
)
!empty() = bool(true)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(1)
Output for 7.2.0 - 7.2.33
------------
true
!empty() = bool(true)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(1)
------------
false
!empty() = bool(false)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(1)
------------
NULL
!empty() = bool(false)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(0)
------------
'string'
!empty() = bool(true)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(1)
------------
array (
)
!empty() = bool(false)
count() = int(0)
------------
array (
0 => 1,
)
!empty() = bool(true)
count() = int(1)
------------
array (
0 => 1,
1 => 2,
2 => 3,
)
!empty() = bool(true)
count() = int(3)
------------
stdClass::__set_state(array(
))
!empty() = bool(true)
count() =
Warning: count(): Parameter must be an array or an object that implements Countable in /in/1mkY5 on line 14
int(1)