• PHP Help
  • How To check Php version of my website?

Please anyone here tells me that which PHP version on my website? And also guide me on how to check it and which is the latest version of PHP version in the market.

Shaadamin
The latest versions of PHP on the market can be found at http://www.php.net/ At this time the currently supported versions are 8.0.28 (for security fixes only), 8.1.16 and 8.2.3, depending on how much upgrading work you want to do at once.

To check the PHP version on your site. If you have a command-line terminal available on your server you can type php -v.

If PHP is configured with expose_php turned on, then there any HTTP response it serves will include an extra header that gives the PHP version.

Otherwise what you can do is (temporarily) add a page

<?php
phpinfo();
?>

or just

<?= phpversion(); ?>

Or if you have any sort of php-driven CRM there may already be something in its system controls that gives the PHP version.

If someone else is doing all the hosting for you, you can ask them.

Write a Reply...