How to check the PHP version in CentOS?

When you run the php -v command in CentOS, you will see output similar to the following:

PHP 7.2.34 (cli) (built: Oct 29 2020 15:10:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

In this example, PHP 7.2.34 represents the current PHP version installed on the system. You can determine the PHP version number installed on the system based on the version information in the actual output.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds