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