An interesting amount of the contracts from the blockchain (with source code) are using ancient versions of solc. The compiler changed (e.g. improved) a lot in terms of code generation during versions 0.4 to 0.7. In short snippets of code, it does not produce wildly different results but you need to be aware of this changes when handling this kind of data.