Facebook’s Insatiable Hunger for Hardware (they're running around 10,000 servers)
gigaom.com
gigaom.com
Back when they leaked their code, it was very well written. The frontend stuff was very nice "Hello, <?php echo $username ?>", not "<?php $query = "SELECT * from ..." ... ?>".
Finally, PHP is only slightly slower than Python and Perl, and slightly faster than Ruby.
So although using PHP is a horrible idea, Facebook seems to be dealing with it. It sure isn't the path of least resistance, though. It's much easier to write good $ANYTHING_ELSE than good PHP.
So, not all _that_ much, really.