handle all php versions, cleanup is the smallest time found