Unity 4 has both a free and a paid (Pro) version. The Oculus SDK works with both, but the free version is missing some key features. With Unity 5, the main version is free and has very few limitations. Unless you have a particular reason to need Unity 4, it's recommended to use Unity 5.