Skip to main content


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
#Programming
This entry was edited (2 years ago)