You're almost certainly actually running PHP 5.3 or older.
You should, however, get a nice error message explaining the problem
rather than a syntax error. This is a bug, I submitted a patch to fix
it:
https://gerrit.wikimedia.org/r/326364
--
Bartosz Dziewoński