check php version linux code example
Example 1: check laravel version
php artisan --version
Example 2: check the php version in ubuntu
php --version
Example 3: checking php version
<?php
echo 'PHP version: ' . phpversion();
?>
Example 4: check php version
php -v
Example 5: php version command linux
PHP 5.4.16 (cli) (built: Mar 7 2018 13:34:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Example 6: php version command linux
PHP 5.4.16 (cli) (built: Mar 7 2018 13:34:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies