Home>Article>Backend Development> How to check the installed php version information in linux
How to check the installed PHP version information on Linux: 1. Use the shell command "php -v" to check the PHP version information; 2. Check the PHP version information through the PHP script "echo PHP_VERSION; echo phpversion();" .
The operating environment of this article: linux5.9.8 system, PHP5.4.16 version, DELL G3 computer
How to check the installed php in linux Version Information?
1. Use shell command to view:
php -v
Output:
PHP 5.4.16 (cli) (built: May 12 2016 13:45:17) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
2. View in PHP script:
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to check the installed php version information in linux. For more information, please follow other related articles on the PHP Chinese website!