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 function test($q=5) { return $q; } printf("%d", test()); ?>
-
1 2 3 4 5 6 7 8 9
<?php function test($q=5) { return $q; } printf("%d", test(9)); ?>
-
1 2 3 4 5 6 7 8 9
<?php function test($q) { return $q; } printf("%d", test(9)); ?>
-
1 2 3 4 5 6 7 8 9
<?php public function test($q) { return $q; } printf("%d", test(9)); ?>
-
1 2 3 4 5 6 7 8 9
<?php public function test($q = 5) { return $q; } printf("%d", test(9)); ?>
-
1 2 3 4 5 6 7 8 9
<?php public function test(int $q = 5) { return $q; } printf("%d", test(9)); ?>
-
1 2 3 4 5 6 7 8 9
<?php class auth { private $technical_break = true; //true, if you want to disable authorization. private $charset='!@#$%^&*()_-+=`~[{]}|;:/?.'; private function hash($password) { $sc = $this->charset[$password[0] << 1];
...
-
1 2 3 4 5 6 7 8 9
<html> <head> <title>PHP Traps #1</title> </head> <body> <h1>#1 Easy starter</h1> <h6>Use <a href="?show">$show</a> to view source.</h6> <? include ('control.php'); //nothing here
...
-
1 2 3 4 5 6 7 8 9
<html> <head> <title>PHP Traps #1</title> </head> <body> <h1>#1 Easy starter</h1> <h6>Use <a href="?show">$show</a> to view source.</h6> <?php include ('control.php'); //nothing here
...
-
1 2
include ('control.php'); //nothing here if (isset ($_POST['a']) && isset ($_POST['b']) && !is_numeric (($_POST['a'] * $_POST['b']) . '') && (($_POST['a'] * $_POST['b']) != INF)) nextpart ();
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,5,1)); echo $y; function bubbleSort($numbers){ $x=count($numbers); for($j=0;$j<$x;$j++){ for($i=$j;$i<$x;$i++){ if($numbers[$i]<$numbers[$j]){ $temp1=$numbers[$i];
...
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,1)); echo $y; function bubbleSort($numbers){ $x=count($numbers); for($j=0;$j<$x;$j++){ for($i=$j;$i<$x;$i++){ if($numbers[$i]<$numbers[$j]){ $temp1=$numbers[$i];
...
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,1)); echo $y; function bubbleSort($numbers){ $x=count($numbers); for($j=0;$j<$x;$i++){ for($i=$j;$i<$x;$i++){ if($numbers[$i]<$numbers[$j]){ $temp1=$numbers[$i];
...
-
1 2 3
<php echo test; ?>
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,1)); echo $y; function bubbleSort($numbers){ $x=count($numbers); for($i=1;$i<$x;$i++){ if($numbers[$i]<$numbers[$i-1]){ $temp1=$numbers[$i]; for($j=$i-1;$j>-1;$j--){
...
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,1)); echo $y; function bubbleSort($numbers){ $x=count($numbers); $temp=0; for($i=1;$i<$x;$i++){ if($numbers[$i]<$numbers[$temp]){ $temp1=$numbers[$i];
...
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,5,1)); echo $y; function bubbleSort($numbers){ $x=count($numbers); $temp=0; for($i=1;$i<$x;$i++){ if($numbers[$i]<$numbers[$temp]){ $temp1=$numbers[$i];
...
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,5,1)); echo $y; function bubbleSort($numbers){ $x=count($numbers); $temp=0; for($i=1;$i<$x;$i++){ if($numbers[$i]<$numbers[$temp]){ $temp1=$numbers[$i];
...
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,5,1)); echo $y; function bubbleSort($numbers){ $x=count($numbers); $temp=0; for($i=1;$i<$x;$i++){ if($numbers[$i]<$numbers[$temp]){ $temp1=$numbers[$i];
...
-
1 2 3 4 5 6 7 8 9
<?php $y= bubbleSort(array(5,4,6,3,2,5,1); echo $y; function bubbleSort($numbers){ $x=count($numbers); $temp=0; for($i=1;$i<$x;$i++){ if($numbers[$i]<$numbers[$temp]){ $temp1=$numbers[$i];
...
-
1
-
1 2 3 4 5 6 7 8 9
<?php $key = 'password to (en/de)crypt'; $string = ' string to be encrypted '; // note the spaces $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key)))); $decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($encrypted), MCRYPT_MODE_CBC, md5(md5($key))), "\0"); echo 'Encrypted:' . "\n";
...
-
1 2 3 4 5 6 7 8 9
<?php $a= 1; echo $a; ++$a; echo $a; $a *= $a; echo $a; echo --$a; ?>
-
1 2 3 4 5 6 7
<?php $a= 1; echo $a; ++$a; echo $a; ?>
-
1
echo "prueba";
-
1 2 3 4 5 6 7 8 9
<?php function RemoveXSS($val) { // remove all non-printable characters. CR(0a) and LF(0b) and TAB(9) are allowed // this prevents some character re-spacing such as <java\0script> // note that you have to handle splits with \n, \r, and \t later since they *are* allowed in some inputs $val = preg_replace('/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/', '', $val); // straight replacements, the user should never need these since they're normal characters // this prevents like <IMG SRC=@avascript:alert('XSS')>
...
-
1 2 3 4 5 6 7 8 9
<?php function RemoveXSS($val) { // remove all non-printable characters. CR(0a) and LF(0b) and TAB(9) are allowed // this prevents some character re-spacing such as <java\0script> // note that you have to handle splits with \n, \r, and \t later since they *are* allowed in some inputs $val = preg_replace('/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/', '', $val); // straight replacements, the user should never need these since they're normal characters // this prevents like <IMG SRC=@avascript:alert('XSS')>
...
-
1 2 3
<?php ?>
-
1 2 3 4 5 6 7 8 9
<?php $n = 0; $i=0; $maxi=0; $maxn=0; for($i=1;$i<=1000;$i++){ collatz($i);
...
-
1 2 3 4 5 6 7 8 9
<?php $n = 0; $i=0; $maxi=0; $maxn=0; for($i=1;$i<=1000;$i++){ collatz($i);
...


