>>tiffan+y7
Hmmm, how do I say this without being downvoted... it's not as much a feature that is missing, it's unfortunately the whole origin of PHP as a language that wasn't really carefully designed, but just kinda grew organically (famously Rasmus Lerdorf didn't intend it to be a general purpose programming language at all, but "just" a templating language). Despite the efforts since PHP 7 (also partly already PHP 5) to make it more "professional", it won't be possible to completely shake off this legacy. Don't get me wrong, I like PHP as a no-nonsense language in which you can get web dev tasks done quickly and effectively, and I would pick PHP over Node any time, but the inherited warts are undeniable and at least some of them are here to stay.