Its important to emphasize that ChatGPT is not actually running code in any meaningful sense of the word run. Its likely developing a representation of the structure of computer programs and approximating results, much like a human programmer would.