Dodge 4.7 engine has different versions. The first of these versions was created in the late 1990s and used for the Jeep series of vehicles. The Grand Cherokee was the testing ground for this new motor. It was later used for the Durango, Dakota and Ram in the Dodge lineup. The second Dodge 4.7 engine is the High Output edition.
Be very careful buying a used 4.7l engine. I have an 01 Dakota Sport 4x4 standard cab with a 5 speed and the 4.7. The truck has 80,000 miles on it and the engine is shot. From what I read on a Dodge board, there is a common problem with some that Dodge doesn't want to admit to. There is an area of the block that is thinner than it should be.