3 ms·
> the need for a strong defensive coding discipline. PHP 7/8 have a lot more typings, it's still optional but you can require your code to use strict typings,
by gremlinsinc 6y ago
> the need for a strong defensive coding discipline.
PHP 7/8 have a lot more typings, it's still optional but you can require your code to use strict typings, and you can use a static analyzer like psalm to basically recommend best practices, add a few tests and your code is pretty damn solid and passes most "smell" tests and generally won't break often or as often as something in python, ruby, go.
Mix in swoole and you went from 200 reqs/sec to 6k which is about 2k more than elixir, so really just about every issue php ever had is basically replaced by just more "mature" architecture.
If you know advanced php, and the new features/best practices etc and use good tooling then php is an awesome language.