I am using xampp on my Ubuntu OS. And I need to know what version of PHP my xampp is using. How do I do that?
Asked
Active
Viewed 1.9e+01k times
3 Answers
21
Put this in your root directory:
<?php
phpinfo();
?>
Save it as phpinfo.php and point your browser to it (this could be http://localhost/phpinfo.php)
- More information (you can get much more information than just the version).
- Example (random image):

Áxel Costas Pena
- 133
- 8
Rinzwind
- 293,910
- 41
- 570
- 710
-
1Hopefully `short_open_tag` is enabled, maybe ` – AbraCadaver Mar 18 '14 at 17:48
-
the command is more good than creating this file. – Ranjith Siji Jan 01 '18 at 06:04
7
Try with command from terminal
sudo /opt/lampp/bin/php -v
Radu Rădeanu
- 166,822
- 48
- 327
- 400
2707974
- 10,363
- 6
- 31
- 44
5
first you have to need the version of your Xampp
xampp -v
or
xampp --version
Then you can check the php version from xampp website
you can't know it from command line since it's bundled inside the Xampp