I will buy an iPhone when it comes to the UK and want to put an O2 Sim card into the phone (a different one).

Do I need to unlock the iPhone?
Will any features be missing?
Will it be difficult to upgrade the iPhone in the future (baseband etc)

Many thanks, sorry if this is already covered, just a bit confused, seems so many different options at the moment!