Yup Facebook and Yahoo are PHP. Google/Amazon/eBay/Walmart.com are all primarily a combination of Java and C++.
Facebook uses a combination of primarily PHP(1) (mostly front-end, rendering, some async jobs and scripts) and C++ (mostly back-end services, other bits of high-performance infrastructure, HipHop for PHP), with some Java (especially in the Hadoop, Hive, and similar areas), Python (mostly automation, scripts, infrastructure), and so forth.
From what I understand, Yahoo! has a similar mix of technologies.
In both cases, you really can't say "are PHP".
(1) Modulo some in-house and open source extensions (like XHP) running on HipHop for PHP.
Although Facebook uses Erlang for chat.
... and Haskell for programmatically manipulating said PHP code base. [http://www.haskell.org/haskellwiki/Haskell_in_industry]
[deleted]
Your reply seems out of place with the context: as far as I can read, the goal of that phrase was "if you have serious performance issues du to your scale you will be excited by these languages, of which Clojure is in the set".
1 - You can go for the most popular languages: VB.NET, PHP, etc. Very easy to find people, lots of plugins, lots of support. This may be the way to go if you want something simple done in a small budget
2 - You can go for the niche languages: Haskell, Clojure, Go. that's more or less the "hipster hacker" way of doing things. Very difficult to find someone that can do even a Hello World, but once you find, they can write a scalable website in about 3 lines and connect to the newest nosql db in 2 lines more. This is good if you're the next twitter, fb, etc and your servers begin to melt even if serving login
(but then again, fb is in PHP and they added 'magic' in HipHop and infrastructure)