Skip to content

Instantly share code, notes, and snippets.

@carasmo
Last active October 2, 2017 15:20
Show Gist options
  • Save carasmo/31ef62a59652ff4d239b18344ec9414a to your computer and use it in GitHub Desktop.
Save carasmo/31ef62a59652ff4d239b18344ec9414a to your computer and use it in GitHub Desktop.
Check version of php. Stick in the root of your site where your WordPress resides. Then check it by visiting this page in your browser: yourdomain.com/what-is-php-version.php
<?php
// prints e.g. 'Current PHP version: 4.1.1'
echo 'Current PHP version: ' . phpversion();
// prints e.g. '2.0' or nothing if the extension isn't enabled
echo phpversion('tidy');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment