if php version code example Example: checking php version <?php echo 'PHP version: ' . phpversion(); ?>