eight years old 是表语 只能放在be后面
he is eight years old
eight-year-old 是复合形容词 只能放在名词前面
he is an eight-year-old boy
be动词后面的就是表语