The EJ253 is SOHC. The EJ254 is a DOHC engine so I foresee problems as this is not a "bolt in" swap if that is what you are looking for. What country are you in? I don't think the EJ254 is a US spec engine.
Is this a grey market Japanese engine?
Japanese import and I'm in New Zealand, thanks for the help
That might be legal where you are but be warned you may have a hard time getting parts for the engine. In the states there is no support for grey market engines and they are not legal to use either. Good luck!
Looking for a Used Outback in your area?
CarGurus has 1,128 nationwide Outback listings starting at $4,888.
Search Subaru Outback Questions
Subaru Outback Experts
Find great deals from top-rated dealersTMSearch
Related Models For Sale
Used Cars for Sale