Free Ideone API
try it now!
Your great ideas will be born here
Recent public pastes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- Tcl
- Text
- Unlambda
- Visual Basic .NET
- Whitespace
-
1 2 3 4 5 6 7 8 9
<?php $a=Array(); $a[0]='0)Zero(1)ddd)'; $a[1]='(1)One(one)uno ((u)no)'; $a[2]='(2Two) 222'; preg_match_all("/(\(.*\))/",ltrim($a[1]), $matches,PREG_SET_ORDER); print('00 - '.$matches[0][0])."\n"; print('01 - '.$matches[0][1])."\n";
...
-
1 2 3 4 5 6 7 8 9
<?php $a=Array(); $a[0]='0)Zero(1)ddd)'; $a[1]='(1)One(one)uno ((u)no)'; $a[2]='(2Two) 222'; preg_match_all("/(\(.*\))/U",ltrim($a[1]), $matches,PREG_SET_ORDER); print('00 - '.$matches[0][0])."\n"; print('01 - '.$matches[0][1])."\n";
...
-
1 2 3 4 5 6 7 8 9
#include <iostream> using namespace std; int main() { cout<<"Hello world"<<endl; return 0; }
-
1 2 3 4 5 6 7
#include <iostream> int main() { cout<<"Hello world"<<endl; return 0; }
-
1 2 3 4 5 6 7 8
#include <iostream> using std; int main() { cout<<"Hello world"<<endl; return 0; }
-
1 2 3 4 5 6 7 8 9
<?php $a=Array(); $a[0]='0)Zero(1)ddd)'; $a[1]='(1)One(one)uno ((u)no)'; $a[2]='(2Two) 222'; preg_match_all("/\([^\)]*\)/U",ltrim($a[1]), $matches,PREG_SET_ORDER); print('00 - '.$matches[0][0])."\n"; print('01 - '.$matches[0][1])."\n";
...
-
1 2 3 4 5 6 7
#include <iostream> int main() { cout<<"Hello world"<<endl; return 0; }
-
1 2 3 4 5 6
#include <iostream> void main() { cout<<"Hello world"<<endl; }
-
1 2 3 4 5 6
#include <iostream.h> void main() { cout<<"Hello world"<<endl; }
-
1 2 3 4 5 6 7 8 9
class Frodo extends Hobbit { public static void main(String[] args) { Object obj = new int[]{1,2,3}; enum Traffic { RED, YELLOW, GREEN }; int[] someArray = (int[]) obj; for(int i: someArray) System.out.println(i + " "); } } class Hobbit {
...
-
1 2 3 4 5 6 7 8 9
class Frodo extends Hobbit { public static void main(String[] args) { Object obj = new int[]{1,2,3}; int[] someArray = (int[]) obj; for(int i: someArray) System.out.println(i + " "); } } class Hobbit { int countGold(int x, int y) { return x + y; }
-
1 2 3 4 5 6 7 8 9
class Frodo extends Hobbit { public static void main(String[] args) { Short myGold = 7; int _____h = 9; System.out.println(countGold(myGold, 6)); } } class Hobbit { int countGold(int x, int y) { return x + y; }
-
1 2 3 4 5 6 7 8 9
class Frodo extends Hobbit { public static void main(String[] args) { Short myGold = 7; int 3h = 9; System.out.println(countGold(myGold, 6)); } } class Hobbit { int countGold(int x, int y) { return x + y; }
-
1 2 3 4 5 6 7 8 9
class Frodo extends Hobbit { public static void main(String[] args) { Short myGold = 7; int #h = 9; System.out.println(countGold(myGold, 6)); } } class Hobbit { int countGold(int x, int y) { return x + y; }
-
1 2 3 4 5 6 7 8 9
<?php $a=Array(); $a[0]='0)Zero(1)ddd)'; $a[1]='(1)One(one)uno ((u)no)'; $a[2]='(2Two) 222'; preg_match_all("/\([^\)]+\)/U",ltrim($a[1]), $matches,PREG_SET_ORDER); print('00 - '.$matches[0][0])."\n"; print('01 - '.$matches[0][1])."\n";
...
-
1 2 3 4 5 6 7 8 9
class Frodo extends Hobbit { public static void main(String[] args) { Short myGold = 7; System.out.println(countGold(myGold, 6)); } } class Hobbit { int countGold(int x, int y) { return x + y; } }
-
1 2 3 4 5 6 7 8 9
public class Frodo extends Hobbit { public static void main(String[] args) { Short myGold = 7; System.out.println(countGold(myGold, 6)); } } class Hobbit { int countGold(int x, int y) { return x + y; } }
-
1 2 3 4 5 6 7 8 9
#include <iostream> #include <assert.h> using namespace std; int LocalOrDiverging( char arr[], int size ) { int rCounter = 0; for ( int i = 0; i < size; i++ ) { if ( arr[i] == 'R' ) { rCounter++;
...
-
1 2 3 4 5 6 7 8 9
#include <iostream> #include <assert.h> using namespace std; int LocalOrDiverging( char arr[], int size ) { int rCounter = 0; for ( int i = 0; i < size; i++ ) { if ( arr[i] == 'R' ) { rCounter++;
...
-
1 2 3 4 5 6 7
#include <iostream> int main(){ char buff[9999999999]; return 0; }
-
1 2 3 4 5 6 7 8 9
class TestDays { public static void main(String[] args) { Animal animal = new Dog(); Cat cat = (Cat)animal; System.out.println(cat.noise()); } } class Animal { public String noise() {return "peep";}
...
-
1 2 3 4 5 6 7 8 9
#include <iostream> #include <assert.h> using namespace std; int LocalOrDiverging( char arr[], int size ) { int rCounter = 0; for ( int i = 0; i < size; i++ ) { if ( arr[i] == 'R' ) { rCounter++;
...
-
1 2 3 4 5 6 7 8 9
public class TestDays { public static void main(String[] args) { Animal animal = new Dog(); Cat cat = (Cat)animal; System.out.println(cat.noise()); } } class Animal { public String noise() {return "peep";}
...
-
1 2 3 4 5 6 7 8 9
#include <iostream> #include <assert.h> using namespace std; int LocalOrDiverging( char arr[], int size ) { int rCounter = 0; for ( int i = 0; i < size; i++ ) { if ( arr[i] == 'R' ) { rCounter++;
...
-
1 2 3 4 5 6
#include <iostream> using namespace std; int main() { cout << "hello world"; }
-
1 2 3 4 5 6
include <iostream> using namespace std; int main() { cout << "hello world"; }
-
1 2 3 4
int main() { cout << "hello world"; }
-
1
cout << "hello world"
-
1 2 3 4 5 6 7 8 9
#include <iostream> using namespace std; #include <stdio.h> #include <string.h> #include <ctype.h> void toupper(char a[]) { int i,len=strlen(a); for(i=0;i<len;i++)
...
-
1 2 3 4 5 6 7 8 9
#include <iostream> using namespace std; #include <stdio.h> #include <string.h> #include <ctype.h> void toupper(char a[]) { int i,len=strlen(a); for(i=0;i<len;i++)
...
