how to check current php version code example
Example 1: php get version
echo PHP_VERSION;
Example 2: checking php version
<?php
echo 'PHP version: ' . phpversion();
?>
Example 3: how to cheeck php
<?phpphpinfo(); ?>
echo PHP_VERSION;
<?php
echo 'PHP version: ' . phpversion();
?>
<?phpphpinfo(); ?>