What happens when you apply 5V to input pin - pull up resistor?

To all practical purposes an input pin has infinite resistance (certainly 10^10 ohms
or more). They just sense voltage.