how do i know my php version. code example
Example 1: checking php version
<?php
echo 'PHP version: ' . phpversion();
?>
Example 2: how to check php version in php
<?php
echo 'PHP version:' . phpinfo();
?>
<?php
echo 'PHP version: ' . phpversion();
?>
<?php
echo 'PHP version:' . phpinfo();
?>