The world needs a new source of energy, an unspillable source.

What would be the life span of solar panels in space?

I know the life span of solar panels on earth is around 20 year, but to me it seems that the life span of a solar panel in space would be longer due to there being not as environmental effects.