Unless the server explicitly puts the version of PHP into a header in a page it serves, there's no way to determine that, except by trying to guess based on other stuff put into the pages.