如何查看php版本等信息

环境 linux、centos7.x

最快速获取php版本信息的方法是,命令行输入:
php -v

得到的结果如下:

1
2
3
4
5
6
7
[me@localhost ~]# php -v
PHP 5.6.36 (cli) (built: Apr 25 2018 10:02:39)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
[me@localhost ~]#

坚持原创技术分享,谢谢鼓励我继续创作!