On Hostgator, if you are using a shared hosting and your default PHP is set to 5.2.x then you can use PHP 5.3 by copying the code below
AddType application/x-httpd-php53 .php
and adding it on the first part of your .htaccess file. Take a look at the example below.