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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
onepiece3d2y
Forum Newbie
Posts: 1
Joined: Sun Apr 22, 2018 5:28 am

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

Post by onepiece3d2y »

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?
User avatar
Vegan
Forum Regular
Posts: 539
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC

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

Post by Vegan »

Code: Select all

<?php
echo 'Current PHP version: ' . phpversion();
?>
User avatar
Christopher
Site Administrator
Posts: 13592
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

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

Post by Christopher »

Or for that and more information:

Code: Select all

<?php
phpinfo();
or either from the command line.
(#10850)
Post Reply