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 <form action="punlic_html/PHP/answers/answer1.php" method="post"> Answer: <input type:"text" name:"ans1"/> <input type="sumbit" /> </form> $_GET["ans1"]; $a=Answer1("$_GET["ans1"]"); if ($a=="CorrectAnswer") echo "Well done! Correct!"; else
...
-
1 2 3 4 5
<?php echo strtotime("Wed Feb 15 2012"), "\n"; ?>
-
1 2 3
<?php printf("%04.2f", 20.20); ?>
-
1 2 3
<?php printf("%1$04.2f", 20.20); ?>
-
1 2 3
<?php printf("%1$04f.2", 20.20); ?>
-
1 2 3
<?php printf("%1$04f", 20.20); ?>
-
1 2 3
<?php printf("%1$04d", 20.20); ?>
-
1 2 3
<?php printf("%1$04d", 20); ?>
-
1
printf("%1$04d", 20)
-
1 2 3 4 5 6 7 8 9
<?php function html_dereference($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = intval(substr($match[1], 1), 16); } else { $codepoint = intval($match[1], 10); } return mb_convert_encoding(pack('N', $codepoint), 'UTF-8', 'UTF-32BE');
...
-
1 2 3 4 5 6 7 8 9
<?php function html_dereference($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = intval(substr($match[1], 1), 16); } else { $codepoint = intval($match[1], 10); } return mb_convert_encoding(pack('N', $codepoint), 'UTF-8', 'UTF-32BE');
...
-
1 2 3
<?php echo str_replace("karovic/", "", "karovic/ghi.php"); ?>
-
1 2 3
<?php echo "karovic/ghi.php"-1; ?>
-
1 2 3
<?php echo "karovic/ghi.php"-"karovic/"; ?>
-
1 2 3
<?php echo "karovic/ghi.php"; ?>
-
1 2 3
<?php return "karovic/ghi.php"; ?>
-
1 2 3 4 5 6 7 8 9
<?php $str = '—'; function html_dereference($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = intval(substr($match[1], 1), 16); } else { $codepoint = intval($match[1], 10); }
...
-
1 2 3 4 5 6 7 8 9
<?php function foobar($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } return mb_convert_encoding(pack('N', $codepoint), 'UTF-8', 'UTF-32BE');
...
-
1 2 3 4 5 6 7 8 9
<?php function foobar($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } var_dump(pack('N', $codepoint));
...
-
1 2 3 4 5 6 7
<?php $s = '2012-02-01'; $d = new DateTime($s); $d->modify('-1 day'); $r = new DateTime($d->format('Y-m-d').' 23:59:59'); echo $r->format('Y-m-d H:i:s'); ?>
-
1 2 3 4 5 6 7 8 9
<?php function foobar($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } var_dump(pack('N', $codepoint));
...
-
1 2 3 4 5 6 7 8 9
<?php function foobar($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } var_dump(pack('N', $codepoint))
...
-
1 2 3 4 5 6 7
<?php $s = '2012-02-01'; $d = new DateTime($s); $d->modify('-1 day'); $r = new DateTime($d->format('Y-m-d').' 23:59:59'); print_r($r); ?>
-
1 2 3 4 5 6 7 8 9
<?php function foobar($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } echo $codepoint;
...
-
1 2 3 4 5 6 7
<?php $s = '2012-02-01'; $d = new DateTime($s); $d->modify('-1 day'); echo $d->format('Y-m-d').'23:59:59'; ?>
-
1 2 3 4 5 6 7
<?php $s = '2012-02-01'; $d = new DateTime($s); $d->modify('-1 day'); echo $d.'23:59:59'; ?>
-
1 2 3 4 5 6 7 8 9
<?php function foobar($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } return mb_convert_encoding(pack('N', $codepoint), 'UTF-8', 'UTF-16BE');
...
-
1 2 3 4 5 6 7 8 9
<?php function foobar($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } return mb_convert_encoding(pack('N', $codepoint), 'UTF-8', 'UTF-16BE');
...
-
1 2 3 4 5 6 7 8 9
<?php function foobar($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } return mb_convert_encoding(pack('N', $codepoint), 'UTF-8', 'UTF-16BE');
...
-
1 2 3 4 5 6 7 8 9
<?php function foo($match) { if (strtolower($match[1][0]) === 'x') { $codepoint = hexdec(ltrim(substr($match[1], 1), '0')); } else { $codepoint = (int)ltrim($match[1], '0'); } return mb_convert_encoding(pack('N', $codepoint), 'UTF-8', 'UTF-16BE');
...


