Figure out your PHP version

To find out what version of PHP you have. Open a php file and include the following line:

<?php phpinfo(); ?>

The above code will display what version of PHP is installed on your server when accessed via the web. A lot of other information is also made available so make sure to not make it public.