Yep, 3 hours. And yep, if a park is open until 1 or 2am normally, and there are extra magic hours, the park will stay open until 4am or 5am! That's rare, obviously, but it can happen in really busy periods.
FYI, for a list of attractions/restaurants that are likely to be open...