check php version in my local mashine code example
Example: how to get php version in xampp
Open command prompt
Locate directory using cd C:/Xampp/php
Type command php -v
You will get your php version details
Open command prompt
Locate directory using cd C:/Xampp/php
Type command php -v
You will get your php version details