Question marked as
Best reply
All user data will be erased.
The iOS version is not replaced and will be whatever version was installed when the erase took place.