The logo for LOL code. It is a pink cat face, with closed eyes and a smile.

LOL

code

An esoteric programming language

Wat

dis?

LOLcode is an esoteric programming language that was created by Adam Lindsay in 2007. It is inspired by “lolspeak”, the language that was expressed in “lolcat” internet memes during that time.

The current version of LOLcode is 1.2.

Joo

want try?

Try out LOLcode right in your browser, thanks to this code interpreter provided by JDoodle.

Try LOLcode
online
A screenshot of some LOL code on the website tutorials point. The LOL code logo is also featured to the left of the code.

Code

snippets

Hello,

world!


HAI 1.2
	CAN HAS STDIO?
	VISIBLE "HAI WORLD!"
KTHXBYE

Looping

1 to 10


HAI 1.2
	CAN HAS STDIO?
	IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 10
		VISIBLE SUM OF VAR AN 1
	IM OUTTA YR LOOP
KTHXBYE

Greeting

animals


HAI 1.2
	I HAS A animal
	GIMMEH animal BTW this is user-input
	BOTH SAEM animal AN "cat"
	O RLY?
		YA RLY
			VISIBLE "HAI CAT"
		MEBBE BOTH SAEM animal AN "mouse"
			VISIBLE "I EAT U"
		NO WAI
			VISIBLE "U IS NOT CAT"
	OIC
KTHXBYE

I can has

LOLcode?

LOLcode has its own interpreter, LCI, written and maintained by Justin Meza. You can download LCI via his github page.