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
<?php echo "Test"; ?>
-
1
echo "test";
-
1 2 3 4 5 6 7 8 9
<?php function formatMilliseconds ($milliseconds) { $seconds = floor($milliseconds / 1000); $minutes = floor($seconds / 60); $hours = floor($minutes / 60); $days = floor($hours / 24); $milliseconds = $milliseconds % 1000;
...
-
1 2 3 4 5 6 7 8 9
<?php //Uses JQuery Carousel-PikaChoose //Connect to database $db=mysql_connect($dbhost, $dbuser, $dbpass) or die ('Cant connect to the database because: ') . mysql_error(); //Select the database mysql_select_db($dbname);
...
-
1 2 3 4 5 6 7 8
<?php $sum = 0; for($i = 0; $i < 1000; $i++) { if($i % 3 == 0 || $i % 5 == 0) { $sum += $i; } }
-
1 2 3 4 5 6 7 8
<?php $sum = 0; for($i = 0; $i < 1000; $i++) { if($i == 3 || $i ==5) { $sum += $i; } }
-
1 2 3 4 5 6 7 8 9
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.dpreview.com/feeds/news.xml'); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $xml = curl_exec($ch); echo "asdasd :: ".$xml; curl_close($ch);
...
-
1 2 3 4 5 6 7 8 9
<?php $codes = array(); $headers = explode("\n","HTTP/1.1 100 Continue HTTP/1.1 302 Found HTTP/1.1 200 OK HTTP/1.1 400 Not Found"); foreach ($headers AS $header) {
...
-
1 2 3 4 5 6 7 8 9
<?php $codes = array(); $headers = array("HTTP/1.1 100 Continue", "HTTP/1.1 302 Found", "HTTP/1.1 200 OK", "HTTP/1.1 400 Not Found"); foreach ($headers AS $header) {
...
-
1 2 3 4 5 6 7 8 9
<?php $codes = array(); $headers = array("HTTP/1.1 100 Continue", "HTTP/1.1 302 Found", "HTTP/1.1 200 OK", "HTTP/1.1 400 Not Found"); foreach ($headers AS $header) {
...
-
1 2 3 4 5 6 7 8 9
<?php $codes = array(); $headers = array("HTTP/1.1 100 Continue" "HTTP/1.1 302 Found", "HTTP/1.1 200 OK", "HTTP/1.1 400 Not Found"); foreach ($headers AS $header) {
...
-
1 2 3 4 5 6 7 8 9
<?php session_start(); function getQueryResults($zapytanie) { if(!$wynik = mysql_query($zapytanie)){ echo("Problem z bazą danych: getQueryResults: odrzucone zapytanie: $zapytanie"); return false; } return @mysql_fetch_array($wynik);
...
-
1 2 3 4 5 6 7 8 9
<?php session_start(); function getQueryResults($zapytanie) { if(!$wynik = mysql_query($zapytanie)){ echo("Problem z bazą danych: getQueryResults: odrzucone zapytanie: $zapytanie"); return false; } return @mysql_fetch_array($wynik);
...
-
1 2 3 4 5 6 7 8 9
<?php session_start(); function getQueryResults($zapytanie) { if(!$wynik = mysql_query($zapytanie)){ echo("Problem z bazą danych: getQueryResults: odrzucone zapytanie: $zapytanie"); return false; } return @mysql_fetch_array($wynik);
...
-
1 2 3 4 5 6 7 8 9
<?php session_start(); function getQueryResults($zapytanie) { if(!$wynik = mysql_query($zapytanie)){ echo("Problem z bazą danych: getQueryResults: odrzucone zapytanie: $zapytanie"); return false; } return @mysql_fetch_array($wynik);
...
-
1 2 3 4 5 6 7 8 9
<?php session_start(); include "funkcje_bazy.php"; function getQueryResults($zapytanie) { if(!$wynik = mysql_query($zapytanie)){ echo("Problem z bazą danych: getQueryResults: odrzucone zapytanie: $zapytanie"); return false; }
...
-
1 2 3 4 5
<?php for($x=0;$x<10;$x++){ echo $x*2 ."<br>"; } ?>
-
1 2 3 4 5
<?php for($x=0;$x<=10;$x++){ echo $x*2 .nl; } ?>
-
1 2 3 4 5
<?php for($x=0;$x<10;$x++){ echo $x*2; } ?>
-
1 2 3 4 5 6 7 8
<html> <head></head> <body> Agent: So who do you think you are, anyhow?
...
-
1 2 3
<?php echo "Olha"; ?>
-
1 2 3 4
<?php echo "Olha"; ?>
-
1
echo "Ola";
-
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 session_start(); include "funkcje_bazy.php"; function getQueryResults($zapytanie) {
...
-
1 2 3 4
$lastPurchaseDate = new DateTime('2011-03-31'); $currentDate = new DateTime("now"); $interval = date_diff($lastPurchaseDate, $currentDate); echo $interval->format('%R%a days');
-
1
echo date("H:i:00");
-
1
echo date("H:i:00");
-
1
echo $_SERVER['REQUEST_TIME'];
-
1 2 3 4 5 6 7 8
<?php function test($q=5) { return $q; } printf("%d", test());
...


