The Economist has a post on research from the Utrecht University into the energy investment required for solar panels and the amount of carbon emissions involved - How clean is solar power?. You can see how far solar PV has come in terms of energy return on investment when the numbers being quoted for new panels are around 15 now (taking less than 2 years to return the initial energy investment).
Wilfried van Sark, of Utrecht University in the Netherlands, and his colleagues have ... calculated the energy required to make all of the solar panels installed around the world between 1975 and 2015, and the carbon-dioxide emissions associated with producing that energy. They also looked at the energy these panels have produced since their installation and the corresponding amount of carbon dioxide they have prevented from being spewed into the atmosphere. Others have done life-cycle assessments for solar power in the past. None, though, has accounted for the fact that the process of making the panels has become more efficient over the course of time. Dr Van Sark’s study factors this in. [The team] found that solar panels made today are responsible, on average, for around 20 grams of carbon dioxide per kilowatt-hour of energy they produce over their lifetime (estimated as 30 years, regardless of when a panel was manufactured). That is down from 400-500 grams in 1975. Likewise, the amount of time needed for a solar panel to produce as much energy as was involved in its creation has fallen from about 20 years to two years or less. As more panels are made, the manufacturing process becomes more efficient. The team found that for every doubling of the world’s solar capacity, the energy required to make a panel fell by around 12% and associated carbon-dioxide emissions by 17-24%.