Home>Article>Backend Development> How to check php version in linux
1. phpinfo() function of php
Running result: php version
2. Execute php -v from the linux or windows command line
Use php -v directly. You need to configure the environment variables of php, which are not configured. When setting environment variables, you can use the path of php.exe instead of php, see the picture below
Recommended tutorial:PHP video tutorial
The above is the detailed content of How to check php version in linux. For more information, please follow other related articles on the PHP Chinese website!