How many languages can you use simultaneously in ONE functioning program in under 500 bytes Intro
In Objective-C (a superset of C and an object-oriented language), I can create an object called a UIWebView. There is a method for this object called loadHTMLString: in which I can load actual HTML into the UIWebView object itself. I can also inject Javascript into it using the method stringByEvaluatingJavaScriptFromString:.
If I were to write a program that created a UIWebView, loaded in my string (which happens to be HTML &quot;code&quot;) and then injected a second string (which is Javascript code) I would be using 3 languages at once, in a functional program. (Not sure that html is really a programming language... so that's debatable haha)
You can also do things like embed Python into C (and other languages): https://docs.python.org/2/extending/embedding.html

This isn't too difficult, with any language you can use other languages inside it if you try hard enough.

Challenge
The challenge here is to see how many languages you can cram into 1 functioning program in under 500 bytes. https://mothereff.in/byte-counter
The program can do literally any task, it just has to work. The languages all have to work together, so you can't have 2 languages running one task, and 3 other languages running a completely different task. So whatever your &quot;task&quot; may be (you decide), there should only be 1 task, and all n languages should work on just that 1 task in your 1 program.

Objective
Your score is the number of languages you used. Whoever uses the most languages at once gets a cookie.
Since this is a popularity contest I will be accepting the answer with the most up-votes.

Q&amp;A
•Ray asked, &quot;Just to clarify, you're looking for a program that uses multiple languages to accomplish different parts of a single task, as opposed to a polyglot that is a valid program in multiple languages?&quot;
Answer, &quot;Yes&quot;.
•DanielM. asked, &quot;does Regex count?&quot; Answer, &quot;Yes, I personally WOULD count it. Again, this is a popularity contest, so it really is up to the voters to determine. HTML is not considered a programming language by some, but it has been successfully used in an answer already that has seen quite a few upvotes. (Also, Stack-overflow does define Regex as a programming language if that helps you make your decision to use it or not: https://stackoverflow.com/tags/regex/info)
HTML, CSS, PHP, JavaScript, CoffeeScript, RegEx, sed, bash; 8 languages

Displays colors of the rainbow.

(Only 396 bytes) will try to add more languages 

HTML + CSS is turning complete and counts as a valid language on PPCG. I've been told CoffeeScript is different enough as JavaScript to be counted as a separate language. And RegEx has been specifically allowed also.

PHP allows for addition of many languages especially with exec and shell_exec functions.

Golfed to fit inside byte limit (ES6)



&lt;html&gt;&lt;style&gt;&lt;?php foreach(explode(" ",exec('sed "s/;/ /g"&lt;&lt;&lt;"red;orange;yellow;green;blue;violet"')) as $color){echo "#{$color} { color: $color }\n"}?&gt;&lt;/style&gt;&lt;script&gt;b="red orange yellow green blue violet".split(/ /).map(c=&gt;`&lt;p id="${c}"&gt;${c}&lt;/p&gt;`)&lt;/script&gt;&lt;script type="text/coffeescript"&gt;document.documentElement.innerHTML+=b.join "\n"&lt;/script&gt;&lt;script src="http://v.ht/u31R"&gt;&lt;/script&gt;&lt;/html&gt;




Uses:


PHP to generate CSS
PHP, uses exec to run bash
sed to split color items for bash
CSS to specify text colors
JavaScript to generate elements
RegEx to split color items for JS
CoffeScript to print elements
HTML as a wrapper / output




Faster &amp; Ungolfed (All modern browsers)



&lt;html&gt;
&lt;style&gt;
  /* CSS */
  &lt;?php// Loop through all colors
  foreach(explode(" ",
  exec('sed "s/;/ /g"&lt;&lt;&lt;"red;orange;yellow;green;blue;violet"')) as $color) {
    // Print it out, add it to the CSS
    echo"#{$color} { color: $color }\n"}
 ?&gt;
&lt;/style&gt;
  
&lt;script&gt;
  // Create an element for each color, store as variable
  window.colors = "red orange yellow green blue violet".split(/ /).map(function(color) {
    return "&lt;p id=\"" + color + "\"&gt;" + color + "&lt;/p&gt;"
  });
&lt;/script&gt;
  
&lt;script type="text/coffeescript"&gt;
  document.documentElement.innerHTML += window.colors.join "\n"
&lt;/script&gt;
  
&lt;!-- CoffeScript Link --&gt;
&lt;script src="https://raw.githubusercontent.com/jashkenas/coffeescript/master/extras/coffee-script.js"&gt;&lt;/script&gt;

&lt;/html&gt;