Terminator 3: Rise of the Machines (commonly abbreviated as T3) is a 2003 science fiction action film directed by Jonathan Mostow and starring Arnold Schwarzenegger , Nick Stahl , Claire Danes and Kristanna Loken .