adaptive php