upgrade of civicrm fails with parse error
It sounds like your server has php 5.x. You need to use php 7.x for recent versions of CiviCRM.

See https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-version