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:
<?php echo PHP_VERSION; // 5.4.16 echo phpversion(); // 5.4.16
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
