Have not checked in a while. In the 70’s it took more energy to build a solar cell than it would produce in its lifetime. And they do age. I think they’re good for about 20 years.
I looked at solar panels for electricity, maybe 20 years ago. At the time it would take about 25 years to recover the cost at, I think it was, $.12 kW/hr. The price for solar panels has come down by a tremendous amount. For stand-alone I think it is fine. For a national grid there are storage and backup issues as well as grid stability issues that have not currently been resolved.
Today, the more expensive ones are supposedly made to last up to 40 years. There is still no recycling. Broken panels leach toxins into landfills and eventually polluting creeks, streams, lakes & rivers. Plus the toxins leeching from the mines where the materials come from. Green? Not!