Или вот тут [1] отличное объяснение почему этот ваш пхп полное [любимое ругательство].

PHP

Pros: none

Cons: every PHP programmer is bad at programming, the language is designed to accommodate them with convenient footguns (or faceguns) at every step, and the ecosystem is accordingly bad. No, PHP7 doesn’t fix this. Use a real programming language, jerk.

1: drewdevault.com/2019/09/08/Eno

@rf