📅  最后修改于: 2022-03-11 14:54:21.435000             🧑  作者: Mango
#Checking and printing PHP version installed on your Linux and Unix server
#To find out php version installed on the server type any one of the following commands on your server.
1.Open the terminal prompt and then type the following commands.
2.Login to the server using the ssh command. For example: ssh user@linux-unix-server
3.Display PHP version, run: php --version OR php-cgi --version
4.To print PHP 7 version, type: php7 --version OR php7-cgi --version
5.Find latest PHP 8 version, type: php8 --version OR php8-cgi --version