doctor heinz doofenshmirtz, also known as dr. doofenshmirtz or doof is a fictional character from the cartoon television series phineas and ferb and its spin-off milo murphy’s law. he is played by dan povenmire.