how to know my version of php 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();
?>