I don't get it. Why people can't just admit the fact that PHP had his time and now, no one with common sense would not start new project (except simple wordpress stuff) in PHP.
Twitter's code is "enterprise" code in that it has to satisfy the organization's needs and a huge part of it is not user-facing, but targeting other enterprises (for example, Twitter ads). At Twitter, we use Scala.
So, no, you're not necessarily stuck between these two options (or Java, which is another popular choice in the enterprise scene). Scala was chosen specifically, among other things, because Twitter had a lot of Ruby developers who would cringe at the idea of PHP, Java, or .NET.
What wrong if combine in enterprise environment.
Php + Java..
E.g jasper report printing.
Php + Microsoft Excel(vb macro)
E.g making reporting direct from excel
PHP as a choice for an enterprise? Jesus. Could somebody show me a 2-3 year old PHP project which doesnt have code rot? To even speak of 5 year old code that is still readable and somewhat maintainable.
every language matured.. same as java.. it up to developer to create nasty code..
About the nasty,enterprise always fall back to lot of idea,changes. So we make lot of junk function/method,class which not proper cleanup after user acceptance test.
Facebook doesn't even use PHP anymore, they switch to their own implementation of PHP called Hack to runs on HHVM. So no, they don't use PHP per se for anything this days.
They're very much using PHP (the language) ...they just made their own runtime. They still sit down and write PHP. They don't sit down and write HHVM code.
That's like saying a company no longer uses Ruby because they use JRuby now.