If anyone is on hosting with some kind of "PHP selector" and wonders why they are getting "syntax error, unexpected T_FUNCTION" even though they have a new version of PHP selected…
Check the .htaccess file (which may be hidden in your file manager by default).
Check the .htaccess file (which may be hidden in your file manager by default).
It could contain an override something like:
Code
AddHandler application/x-httpd-php52 .php .php5 .php4 .php3
Code
#AddHandler application/x-httpd-php52 .php .php5 .php4 .php3
I just helped a user identify this issue.