My high school was 10th-12th grade, and the state graduation requirements specified two years of high school PE. We'd already had a mandatory year of PE in 9th, so that left one more year, to be taken anytime in the next three years, in order to meet requirements.
So, our PE classes were completely mixed by age and grade level.
I took it early to get it over with, and chose swimming. No contact, no competition, and therefore no worries with older kids.
Two senior classmates became lifelong friends of mine.