Open command prompt Locate directory using cd C:/Xampp/php Type command php -v You will get your php version details
sudo /opt/lampp/bin/php -v