Good
bool(true)
string(9) "something"
Bad
bool(false)
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/u648S:12
Stack trace:
#0 {main}
thrown in /in/u648S on line 12
Process exited with code 255.
Good
bool(true)
string(9) "something"
Bad
bool(false)
string(1) "s"
Ugly
bool(false)
string(1) "s"
Trick or treat
Notice: A non well formed numeric value encountered in /in/u648S on line 20
bool(false)
string(1) "m"
Notice: A non well formed numeric value encountered in /in/u648S on line 22
bool(false)
string(1) "m"
Output for 7.3.32 - 7.3.33, 7.4.26
Good
bool(true)
string(9) "something"
Bad
bool(false)
string(1) "s"
Ugly
bool(false)
string(1) "s"
Trick or treat
bool(false)
string(1) "m"
bool(false)
string(1) "m"
Good
bool(true)
string(9) "something"
Bad
bool(false)
string(1) "s"
Ugly
bool(true)
string(1) "s"
Trick or treat
Notice: A non well formed numeric value encountered in /in/u648S on line 20
bool(true)
string(1) "m"
Notice: A non well formed numeric value encountered in /in/u648S on line 22
bool(false)
string(1) "m"