8 Codes to Find Versions
The following is a collection of Codes used to Determine the Language or Compiler Version being used. *The following Featured Codes were Created by John Wells PHP Version <?php echo "PHP Version ".phpversion()."<br>"; ?> Click here to run this code Java Version public class Program { public static void main(String[] args) { System.out.format("Java Version = '%s'", System.getProperty("java.version")); } } Click here to see this code run Swift Version #if swift(>=4.2) print("Running Swift 4.2 or later") #else #if swift(>=4.1) print("Running Swift 4.1") #else #if swift(>=4.0) print("Running Swift 4.0") #else print("Running Swift earlier than 4.0") #endif #endif #endif Click here to run this code Ruby Version print "ruby #{ RUBY_VERSION }p#{ RUBY_...