Before we insist other users of MediaWiki can only use PHP 7+, we should probably be using it ourselves.
That said, no doubt there are gotchas and issues we've not spotted yet, so this would have to be carefully done (start with unit tests, then one machine, then…).
Probably want to do some more digging into the code before enabling...
https://docs.hhvm.com/hhvm/configuration/INI-settings#php-7-settings