I know both very well, and I think PHP uses less code to do the same thing. I hear that interpreters are much faster than JVMs as well. MVC is what makes Java better for enterprise systems, because it's easier to combine forces. If you ask which one is better, most people will say, "PHP for web" and "Java for business."