Depends on which angle you're looking at it. Personally, I find PHP-the-language abhorrent, even more so than Java. For me, that's enough. I think Java tooling is substantially better, I find the libraries to be of generally better quality, in the space I work in I find the
JEE architecture more suitable than anything I've seen in PHP.
OTOH, PHP is a more dynamic language than Java (offset by sucking as a language), and it's possible to write clean (within the range of cleanliness of an ugly language with a million different conventions) applications just like in Java. More or less.