They are all correct, under the right circumstances. 1) An eleven year old boy will usually be in grade 5. 2) I was eleven years old when I was in grade 5.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
If you want to focus on correctness, you might want to avoid using "eleven year old" (without the hyphens). The reason is that, if you use the three words separately, you need the plural "years" when you talk about "eleven".