What all will fit?

I’ve heard a 5.7 can be slid under the stock 4.7 wiring harness and made to work really easy. Maybe need to re-pin a couple of wires? I know of a guy that did it to an ‘04 but nothing I spent much time researching so not sure what all it took.