PHP has astounding longevity. In maintaining my personal websites (static pages, web toys, projects with my writing groups), I always ask myself: how will I keep this running in 20 years?<p>It's unrealistic to think that languages will stay static over 20 years -- servers get rebuilt, old versions languages get deprecated, frameworks disappear. So the question becomes<p>- will I know how to fix or rebuild this, even if I don't touch the code more than once every 5-10 years?
- what is sufficiently resilient to mean that "mean time between rebuilds" is as long as possible?<p>Over all that time, what's lasted best are CGIs (Python/Perl) and PHP, running behind Apache.<p>I don't use PHP day-to-day, so changes in the language don't affect me much. But for keeping the history of the web alive, it is an unparalleled tool, and its proven commitment to longevity is why I still reach for it.<p>Separately: I think that longevity is a question we should ask ourselves more about the web. New ideas often come from experiencing old (even failed) ideas -- but if those old ideas just disappear, we lose some of our ability to progress.