how to check php version through cmd code example Example: checking php version <?php echo 'PHP version: ' . phpversion(); ?>