how to check what version of php i have code example Example: checking php version <?php echo 'PHP version: ' . phpversion(); ?>