Just to test it I put "set version 8.0" right in front of the foreach, and there was no error message in the server log after I restarted.
I think there should be no problem.
/Ola