PHP – The Right Way
A language that changes the semantics of functions between minor versions has no "right way".
"count()"less examples of crap. I have currently two weeks of code migration behind me because code running correctly on 7.0 fails on 7.3 -- while I see the reason for change was necessary I also see the hopelessness of rebuilding a flawed house with a fundament build on a pile of manure.<p>And the good news given to me by a colleague is that they pulled the same stunt going from 7.3 to 7.4. It's like depending on stumbling alcoholics instead of language designers.<p>Not much has changed since core devs tried to mitigate an overflow by testing for  "$variable < MAXINT".