> Its the biggest example out there why should not use PHP for anything close to, say 10% of facebook scale.
What a weird take to base your current belief on something that happened more than a decade ago.
Not only the condition for Hack creation (speed, memory usage and strict type checking) have been fixed a long time ago since php 7.0
But also if you reach 10% of facebook scale, it doesn't matter what language you used, you will need to rewrite anyway.
Show me a company where PHP is the issue because they reached 10% of facebook scale, and what you're showing is a company that succeeded thanks to PHP. Applies to other language the same. Picking your stack based on "but what if I reach that scale" has to be the mother of all premature optimisations.
There are many large projects out there written in say, Java (the old boring dog) that did not have to rewrite. I can add C# as another traditional corpororate language.
There are many others too. PHP not so much.
Yeah you will have to provide a list of "10% of facebook scale" projects using those language and didn't need to have any rewrite