The following lines of code will let you check PHP version of your WordPress website.

Snippet Source/Credit: PHP.net