How to check php version of xampp in windows

Download Xampp and install it in your local machine.

Now open command prompt and open directory where you installed xampp.

Example if you installed xampp in C:/xampp folder

your command prompt should be like below

C:/Xampp/php

 

Now type command 

php -v

 

it will return current version of php installed with xampp

E:\xampp\xampp\php>php -v

PHP Warning:  PHP Startup: Unable to load dynamic lib

Warning: PHP Startup: Unable to load dynamic library
PHP 7.3.27 (cli) (built: Feb  2 2021 20:46:26) ( ZTS
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Tec

E:\xampp\xampp\php>