Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
use iso_fortran_env
  character(len=:), allocatable :: version, options
  version = compiler_version()
  options = compiler_options()
  print *,version
  print *,options
use Config;
my $version = $Config{version};
# 5.28.1

my $version_for_humans = $Config{version_patchlevel_string};
# version 28 subversion 1

my %options = %Config{qw(config_args cccdlflags ccdlflags ccflags lddlflags libs)};
writeln({$I %fpcversion%});
puts version = RUBY_VERSION