Magento 2 Module Generate PHP Compatibility Report

Generate PHP compatibility report for your custom module or theme. PHPCompatibility with PHP_CodeSniffer.

Inside your phpcs installation sir your need to install PHPCompatibility module by given cmd. you can check how to install phpcs module.
Copy
                            
composer require --dev dealerdirect/phpcodesniffer-composer-installer composer require --dev phpcompatibility/php-compatibility
Put your code in dir: m-app-code for which your want to test PHPCompatibility. and run given cmd. and your get report file "php8.3-report.txt"
Copy
                            
vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 8.3 m-app-code/ --report-full="php8.3-report.txt"
2025-06-16 04:28:19
Copyright © 2013-present Magento, Inc. All rights reserved.