how to know php version in compsoer code example Example: checking php version <?php echo 'PHP version: ' . phpversion(); ?>