How to fix errors when installing varbase with Composer?
Drupal 8 requires PHP 5.5.9 or greater. The error is informing you that you have a lower version than that installed; specifically that the functionality for obtaining class name using ::class, which was added in 5.5, is missing.

The solution is to upgrade PHP to a version that Drupal supports.