Compounds having formula I are provided where the variables have the values described herein. Pharmaceutical formulations include the compounds or pharmaceutically acceptable salts thereof and a pharmaceutically acceptable carrier and combinations with other agents. These compounds are phosphotidylinositol 3-kinase (PI3K) inhibitors.