Since the release of WordPress 5.2, a new tool called "Site Health" is built into WordPress.
Using Site Health, you can check the version of PHP your WordPress site is running.
First, login to your WordPress Admin Dashboard.
Next, click on Tools and then Site Health.
Click on Info and then the Server tab where you’ll find your PHP version: