9

How to know what version of PHP is used on my xampp?

AKM Nazmul Islam
  • 251
  • 1
  • 3
  • 7

4 Answers4

24

If you are using new version of xampp.

Try http://localhost/dashboard/phpinfo.php

Prosenjeet Paul
  • 284
  • 2
  • 8
12
  1. Put this code in your root directory or htdocs folder of xampp:

  2. <?php phpinfo(); ?>

  3. Save it as phpinfo.php and point your browser to it (this could be http://localhost/phpinfo.php)
  4. 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

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