Should I learn Pathfinder or 5th edition?

What ability score does a Beholder use to determine its eye ray DC?