php version check cmd code example
Example 1: checking php version
<?php
echo 'PHP version: ' . phpversion();
?>
Example 2: check php version
/* in terminal type it*/
php -v
Example 3: how to cheeck php
<?phpphpinfo(); ?>
<?php
echo 'PHP version: ' . phpversion();
?>
/* in terminal type it*/
php -v
<?phpphpinfo(); ?>