A smartphone app can identify individuals who are under the influence of 4 commonly used drugs using distinct ocular response patterns.