# Ruby 1.x and 2.x, 23 bytes, score 12 p defined?([].to_h)?2:1 Based on the `to_h` method which was introduced on the `Array` class in Ruby 2.