Design is a concept of engineering or arts, which means that you do not really design using Java. Java is used for coding for the client-side, so it is pointless since there will be different codes for each program. The functionality of both is different from each other too.
To give you an overview, the differences between both will be tackled here.
PHP Website vs Java
With that said, you cannot really compare the both much when it comes to their value to website development because they have different purposes. In fact, you can even use both together for a dynamic website.