Both are physically and externally the same. Both are 2AZFE's. 05-06 uses a different ECU. I know the harness must follow the ECU because the plugs are different. I know the 07+ have oil squirters and a slightly higher compression.
Will a 05/06 Engine work in an 07/10 Shell?