The engine code is most likely N47D20C.
I have obtained an inexpensive engine from a 2013 F30 320d and I am curious whether it is compatible. I am receiving conflicting responses and no one can definitively inform me.
I have received counsel indicating that although the block may remain unchanged, the head will vary, and some components such as the EGR cooler and certain water lines will be entirely different. Some people are informing me that my vehicle, which is a late e90 model, has an early F30 engine that is essentially the same.
Any assistance would be much appreciated

I have found a really affordable F30 engine and am considering making some modifications, however I am apprehensive about the prospect of replacing the cylinder heads.
Another alternative would be to construct my own engine, although I doubt it would be economically viable.
Thank you