Are thes sentences all OK?
(someone accuses me of doing or saying something)
If I say;
If I said anything like that, I would say I did. and If I had said anything like that, I would say I did.
If I did anything like that, I would say I did. and If I had done anything like that, I would say I did.