Spotted in the wild, binary operations on strings in #PHP apparently are faster than native string functions. 🤷♂️
// PHP_OS & "\xDF\xDF\xDF" == strtoupper(substr(PHP_OS, 0, 3)), but a lot faster
#ProgrammingThis entry was edited (2 years ago)
Christoph S likes this.