All of us know that Java on the server required JVM then it goes to machine code while php does not need this.
From this point of view, can we say that php will perform better on a server than Java??
If Yes, by how much approx the resources used by java is more than the resources used byphp ?? is it 150% more or 110% more??
Java is a lot faster than PHP (5x-10x), but it is also more memory consuming(usually, but not always), approximately 2x. But my opinion depends on software applications i`ve seen. It is never true to say that Java is better than PHP in all ways and everywhere.
In my work we use Java for heavy business applications (Tomcat 6 with Terracotta clustering), and PHP for small-medium sites and frontends.