I dont know about you, but I have not bought stocks or bonds in either PHP or Java lately :p
Anyway, on a more serious note: what exactly do you want to compare? It is usually only fair to compare the security of applications, especially those that solve similiar problems. Asking which programming language is more secure usually does not make sense.