This is how I checked the compatibility of my WordPress theme and plugin (code) with PHP Compatibility Checker
Read the full article here: https://fearby.com/article/check-the-compatibility-of-your-wordpress-theme-and-plugin-code-with-php-compatibility-checker/