how to get the version of php running on my system code example
Example 1: php get version
echo PHP_VERSION;
Example 2: how to check php version in php
<?php
echo 'PHP version:' . phpinfo();
?>
echo PHP_VERSION;
<?php
echo 'PHP version:' . phpinfo();
?>