Can enterprise application be written in php? No.
Explanation.
If you are speaking about enterprise application you are talking about three tire system architecture. Database tire, middle tire and client tire. The middle tire should have distributed components if necessary but for large enterprise apps it is always necessery.
Java have ejbs - distributed objects, Hibernate
PHP is only scripting language for web apps. It cannot build middle tire with php other than web (distributed components for other clients than browser).
This is where this story ends!
We cannot speak about enterprise application without distrusted components.
With php you can build maybe a huge projects, but you cannot share the business logic with other clients than than browser. Someone could say you can use web services, but the services in php are not suitable for mission critical services.
Have you ever seen a bank application written in php?
Have you seen bank components written in php?
No.
PHP code can be so messy, so unstructured, so full of errors and thats why it cannot be used for enterprise. You can use continuous integration with phpundercontrol but it is not as java. There is no build so error could show up any time.
Have you seen php classes that are reused and are using enterprise patterns? Very rarely.
PHP programmers do not write abstractions, polymorphism and other OO staff.
And finally I will give you an example.
"According to Oracle Corporation, by 2006 over 30,000 organizations had become Fusion Middleware customers, including over 35 of the world's 50 largest companies"
wikipedia source.
This technology is java based.
The other big player is IBM also using java.
The rest of the market is taken by Microsoft.
There is no room for php in bank sector, financial sector, military, governments, army
It can only be used for web sites, but not distributed application, business inteligence.
There is a lot of thinks to discuss why php cannot be enterprise language.