Here's the answer:
“你学中文多久了?”
(nǐ xué zhōng-wén duō-jiǔ le?)
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning Chinese with Memrise get this phrase correct 89.94% of the time!