object(SimpleXMLElement)#2 (1) {
[0]=>
string(3) "foo"
}
string(6) "object"
bool(true)
bool(false)
bool(false)
int(1)
int(0)
----------------------
string(6) "object"
bool(false)
bool(true)
bool(false)
int(0)
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/S8pvV:18
Stack trace:
#0 {main}
thrown in /in/S8pvV on line 18
Process exited with code 255.
Output for 8.0.0 - 8.0.9
object(SimpleXMLElement)#2 (1) {
[0]=>
string(3) "foo"
}
string(6) "object"
bool(true)
bool(false)
bool(false)
int(1)
int(0)
----------------------
string(6) "object"
bool(false)
bool(true)
bool(false)
int(0)
Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in /in/S8pvV:18
Stack trace:
#0 {main}
thrown in /in/S8pvV on line 18
Process exited with code 255.