+ 2
Java is more open to do nearly anything and is better compatible across all devices, whereas PHP is just a server-side web lang. As for future, PHP will die out well before Java ever does.
As for Salary, Java does pay more. I think one of the bigger selling points is its capabilities over PHP.