I think the easiest would be to include the intermediate php7-macros package. Inclusion can then simply be chosen by version number.