Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- 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
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1 2 3 4 5 6 7 8 9
<?php $hi = fopen('php://stdin', "r"); $ho = fopen('php://stdout', "w"); while (true) { fscanf($hi, "%d", $n); if ($n == 42)
...
-
1 2 3 4 5 6 7 8 9
<?php $hi = fopen('php://stdin', "r"); $ho = fopen('php://stdout', "w"); while (true) { fscanf($hi, "%d", $n); if ($n == 42)
...
-
1 2 3 4 5 6 7 8 9
<?php $hi = fopen('php://stdin', "r"); $ho = fopen('php://stdout', "w"); while (true) { fscanf($hi, "%d", $n); if ($n == 42)
...
-
1 2 3 4 5 6 7 8
<?php $var = 'tennis'; $var.=' is cool.'; echo $var; ?>
-
1
echo 'hello';
-
1 2 3 4 5
$var = 'tennis'; $var.=' is cool.'; echo $var;
-
1 2 3 4 5 6 7 8
<?php $tar=array ('dishwasher'=>'eric','cook1'=>'doug','cook2'=>'bruce','cook3'=>'elliot'); echo $tar['cook2']; ?>
-
1 2 3 4 5 6 7 8
<?php $tar=array ('dishwasher'=>'eric','cook1'=>'doug','cook2'=>'bruce','cook3'=>'elliot'); echo $tar['dishwasher']; ?>
-
1 2 3 4 5 6 7 8 9
<?php $tar-array ('dishwasher'=>'eric','cook1'=>'doug','cook2'=>'bruce','cook3'=>'elliot'); echo $tar['dishwasher']; ?>
-
1 2 3 4 5 6 7 8 9
<?php $tar-array ('dishwasher'=>'eric','cook1'=>'doug','cook2'=>'bruce','cook3'=>'elliot') echo $tar['dishwasher']; ?>
-
1 2 3 4 5 6 7 8 9
<?php $tar-array ('dishwasher'=>'eric', 'cook1'=>'doug', 'cook2'=>'bruce', 'cook3'=>'elliot')
...
-
1 2 3 4 5 6 7 8 9
<?php $tar-array ('dishwasher'=>'eric', 'cook1'=>'doug', 'cook2'=>'bruce', 'cook3'=>'elliot');
...
-
1 2 3 4 5 6 7 8
<?php $tar-array('dishwasher'=>'eric','cook1'=>'doug','cook2'=>'bruce','cook3'=>'elliot'); echo $tar['dishwasher']; ?>
-
1 2 3 4 5 6 7 8
<?php $tar-array('dishwasher'=>'eric','cook1'=>'doug','cook2'=>'bruce','cook3'=>'elliot') echo $tar[dishwasher]; ?>
-
1 2 3 4 5 6 7 8
<?php $tar[dishwasher]="eric"; $tar[cook1]="doug"; $tar[cook2]="bruce"; $tar[cook3]="elliot"; echo $tar[dishwasher]; ?>
-
1 2 3 4 5 6 7 8
<?php $tar[dishwasher]="eric"; $tar[cook1]="doug"; $tar[cook2]="bruce"; $tar[cook3]="elliot"; echo $tar[dishwaser]; ?>
-
1 2 3 4 5 6 7 8 9
<?php /* This script generates a POST header that makes PHP 5.4.0RC6 *64 bit* try to execute code at 0x1111111111111111 (C) Copyright 2012 Stefan Esser PHP 5.3.9 requires you to know the address of a writable address filled with NULL. 32bit requires you to create a fake 32bit Hashtable instead of a 64bit one Because this vulnerability also allows leaking memory addresses ASLR can be "semi"-defeated. This means around 4000 tries = 4000 requests = 4000 crashes are enough to bruteforce code addresses to execute arbitrary code despite ASLR/NX
...
-
1 2 3 4 5 6 7 8
<?php $tar[0]="eric"; $tar[1]="doug"; $tar[2]="bruce"; $tar[3]="elliot"; echo $tar[1]; ?>
-
1 2 3 4 5 6 7 8
<?php $tar[0]="eric"; $tar[1]="doug"; $tar[2]="bruce"; $tar[3]="elliot"; echo $tar[3]; ?>
-
1 2 3 4 5 6 7 8
<?php $tar[0]="eric" $tar[1]="doug" $tar[2]="bruce"; $tar[3]="elliot"; echo $tar[3]; ?>
-
1 2 3
<?php print "GA";
-
1 2 3 4 5
<?php $submission_id = 5; echo(substr(sha1($submission_id), 0, 9));
-
1 2 3 4 5
<?php $submission_id = 5; echo(substr(sha1($submission_id), 0, 9);
-
1 2 3 4 5
<?php $submission_id = 5; echo(sha1($submission_id));
-
1 2 3 4 5 6
<?php $tar=array('eric','doug','bruce','elliot'); echo $tar[3]; ?>
-
1 2 3 4 5 6 7 8 9
$html = file_get_contents('http://www.stackoverflow.com/'); $dom = new DOMDocument; // init new DOMDocument $dom->loadHTML($html); // load HTML into it $xpath = new DOMXPath($dom); // create a new XPath $nodes = $xpath->query('//a[@href]'); // Find elements with a style attribute foreach($nodes as $node) { // Iterate over found elements $node->removeAttribute('href'); // Remove style attribute } echo $dom->saveHTML();
-
1 2 3 4 5 6 7 8 9
<?php /** * Escrito por Rodrigo Nery * * Class Loop com while em PHP * * @param int $count * @param array $args */
...
-
1 2 3 4 5 6 7 8 9
/** * Escrito por Rodrigo Nery * * Class Loop com while em PHP * * @param int $count * @param array $args */ class Loop{
...
-
1 2 3 4
<?php $date = date ('l\, F n\, Y'); echo "$date" ; ?>
-
1 2 3 4
<?php $date = date ('l\, F'); echo "$date" ; ?>


