How to know what version of PHP is used on my xampp?
Asked
Active
Viewed 8.3k times
9
-
2Possible duplicate of [How to get the PHP Version?](https://stackoverflow.com/questions/2113955/how-to-get-the-php-version) – JJJ Mar 24 '18 at 10:53
-
Brother, my answer is different though question is same. – AKM Nazmul Islam Mar 24 '18 at 11:11
-
2it's a good question... not sure why strange comments and downvotes. – KateYoak Jul 05 '20 at 20:31
4 Answers
12
Put this code in your root directory or htdocs folder of xampp:
<?php phpinfo(); ?>
- Save it as phpinfo.php and point your browser to it (this could be http://localhost/phpinfo.php)
- Example: random image (Click Here)

AKM Nazmul Islam
- 251
- 1
- 3
- 7
9
First open your Locate directory where using Xampp
C:/Xampp/php
Type cmd
on folder address bar and hit Enter
And then Type command php -v

shashikant pandit
- 476
- 6
- 8
1
Go to xampp control panel start the apache and mysql and click the admin besides the MySQL. After phpmyadmin page open, there you can see php version, Apache version and MySQL version in that open page.

Jaya Gowry
- 11
- 1
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 23 '22 at 05:19