Bootstrap FreeKB - PHP - php --version command line tool
PHP - php --version command line tool

Updated:   |  PHP articles

On a Linux system, the which command can be used to determine where the php command line tool is located. In this example, the php command line tool is located at /usr/bin/php.

~]# which php
/usr/bin/php

 

The -v or --version option can be used to display the current version of PHP.

~]# php --version
PHP 7.2.0 (cli) (built: Mar  2 2018 14:47:20) ( ZTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 176a9d in the box below so that we can be sure you are a human.