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
• Javascript is designed for client-side scripting language while PHP is a server-side scripting language.
• Javascript does not support database while PHP does
• Javascript does not support lowercase and uppercase variables and PHP does
• You cannot execute PHP within the browser unlike the Javascript
•Javascript supports interchangement of objects and arrays while PHP does not
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.