hadn't got or didn't have?

Hi

What is the difference between

I hadn’t got any apples
and
I didn’t have any apples

thanks

‘Hadn’t got’ might be used in informal British English, though not half as much as ‘didn’t have’.