Choosing PHP in 2022 and beyond
I&#x27;ve worked with PHP throughout 2020, and it is still the worst crap I know.<p>Static typing: We&#x27;re not there yet. Lack of generics means arrays can contain anything. Not even close to TypeScript, and let&#x27;s not compare to functional languages. Types in PHP is still duct-tape.<p>High performance: Nope. PHP is fast compared to what PHP used to be, but PHP is not fast compared to compiled, optimizing languages. I&#x27;m sorry, but this claim of PHP being a performant language is either delusional or unambitious. I basically have not been in contact with PHP in the last two years where performance wasn&#x27;t a serious problem.<p>This isn&#x27;t entirely because PHP performs bad, but largely because PHP programmers, on average, have a weak understanding of CS principles. I don&#x27;t mean to bash any individuals; I saw a talk by a PHP programmer, whom I have great respect for, as late as yesterday. Incidentally, the talk was about how to make DSLs in Rust.<p>Maybe if all you did was PHP, PHP is pretty great.<p>The killer feature of PHP is that you can always find cheap labor.