check what version of php is running code example Example: checking php version <?php echo 'PHP version: ' . phpversion(); ?>