3.6 (I wouldn't go older than 2012, because some avcs solenoids changed and, according to rumours, 2012/2013+ have better piston rings). there weren't generations like with 3.0.
if you get the engine from around 2013-2015 from outbacks and newer - they have nice bonus as oil level sensor
