It's almost funny that you try to refute, or rather, dismiss, criticism of PHP with "but it's fast", when none of what you cite even mentions that. I just want to say: STFU.
It doesn't in fact imply that PHP is slow. What it says about PHP (besides "php seems to fail in most categories" which doesn't imply any single specific failure because most != all) is this: "But php has both an ugly syntax, horrendous stdlib, and fame of security issues." You will notice that none of those specific complaints is about speed.
None of those comments are complaining about PHP being slow at repeatedly writing a string whose length is a multiple of the page size to standard output. That is a pretty niche case, and hardly refutes even the complaint that PHP is slow, much less all the complaints about PHP that aren't related to its speed.
FWIW, when I run the tests there's no substantial difference between Perl, LUA, or PHP.
>>>Did you notice PHP outperforms any other scripting languages?
I am not sure what was the last time I had to choose a language by a single dimension. If we are talking about performance, scripting languages rarely shine. On the top of that, performance critical things in scripting languages are often implemented in a compiled language (like Pandas for example).
while(1){write();} is about as far away as it gets from actual application code. This topic may be fun, but remains an utterly pointless micro-benchmark.
After reading here so many unfair critics and pedantic dislike over PHP[1][2][3][4][5][6], I just want to say: STFU.
[1] https://news.ycombinator.com/item?id=12706136
[2] https://news.ycombinator.com/item?id=3825227
[3] https://news.ycombinator.com/item?id=3824881
[4] https://news.ycombinator.com/item?id=1823022
[5] https://news.ycombinator.com/item?id=1819517
[6] https://news.ycombinator.com/item?id=1819413
... Just to name a few.