I often check the operation with ideone to post to Qiita. For example, I can't know what version of Ruby is running. (Maybe there should be) To check, the runtime should output your version, so I will summarize it.
Ruby
puts RUBY_VERSION # => 1.9.3
PHP
<?php
echo phpversion(); // => 5.4.4-12
Added from comments
<?php
echo PHP_VERSION; // => 5.4.4-12
Python
import sys
print(sys.version) # => 3.2.3 (default, Sep 10 2012, 12:58:42)
.NET (by C#)
Corrected from System.Reflection.Assembly.GetExecutingAssembly (). ImageRuntimeVersion
after being pointed out in the comment
public class Test {
public static void Main() {
System.Console.WriteLine(System.Environment.Version); // => 2.0.50727.1433
}
}
Get a Version object that describes the major version number, minor version number, build number, and revision number of the common language runtime.
Assembly.ImageRuntimeVersion Property
Gets a string that represents the version of the common language runtime (CLR) stored in the file that contains the manifest.
I see.
As a result, the version was older than expected. I'm tired of it (or rather, this is enough for me), so I'd like to ask someone to continue.
Recommended Posts