Write a program that:
- if a compiled language is used, compiles without errors
- if an interpreted language is used, runs without syntax errors
for every major release of your language, and produces different output for every major release under which it is compiled/run. (It may produce the same or different output for versions within the same major release, as long as it varies among major releases.) You may not output or use any part of the language version in your program.
A "major release" of a language is defined to be a publicly available release that added to the major version number. For example, C# has had 6 major releases, C has had 3 (K&R is not a numbered version and does not contribute to the count), and Ruby has also had 3 (due to version 0.95). What number constitutes the major version number can change over time (Java has had 8 major releases).
Any language used in this challenge must have:
- At least three major releases, and
- A dedicated Wikipedia article.