Your Task

Write a program using ASCII characters. Five alphanumeric (0-9, A-Z, a-z) characters will be inserted at random into your program's source code. Your task is to detect and output these characters inserted into your program.


  • Your code cannot use any form of backup file.
  • Your code may produce any unnecessary error messages, provided these are distinguishable from the actual output.
  • The output may be on the screen or into a file.
  • The output may also contain unnecessary characters, but no extra alphanumeric characters (excluding error messages).


The post with the largest vote count wins.

  • 7
    \$\begingroup\$ I'm confused about why the folder is relevant. Is this challenge the same as "Write a string so that when any five character are added in arbitrary positions, and the result is run as code, it prints those characters"? \$\endgroup\$ – xnor Nov 10 '15 at 9:31
  • 2
    \$\begingroup\$ Hahaha. I hope this post doesn't get investigated for unintentional obscene language. I understand the word urbandictionary.com/define.php?term=bugger isn't used much in the USA. It was the line before "conditions" that made me LOL \$\endgroup\$ – Level River St Nov 10 '15 at 10:05
  • \$\begingroup\$ @xnor Yes, it is the same. I just wanted to say that the file cannot access a backup of itself. \$\endgroup\$ – ghosts_in_the_code Nov 10 '15 at 11:09
  • \$\begingroup\$ @steveverrill It was unintentional. I've edited. \$\endgroup\$ – ghosts_in_the_code Nov 10 '15 at 11:09
  • \$\begingroup\$ @wizzwizz4, are you sure that your edit is not an other question? \$\endgroup\$ – Qwertiy Dec 15 '15 at 20:28

PHP, 0 bytes

PHP will simply echo the source until it sees an opening code tag <?.

| improve this answer | |
  • 5
    \$\begingroup\$ Why the downvotes? Are you insulted because this is not a Pyth, CJam whatever answer? Feersum has used one of the right languages for the task in question. (+ it is heavily golfed) +1 \$\endgroup\$ – Stephan Schinkel Nov 10 '15 at 9:58
  • 3
    \$\begingroup\$ I downvoted because this is a popularity contest and while you use a language feature appropriately, I would rather see smart code written by a user than just "hey it works as is with php". \$\endgroup\$ – Aaron Nov 10 '15 at 10:31
  • \$\begingroup\$ lmoa i like this place ! \$\endgroup\$ – Abr001am Nov 10 '15 at 10:44
  • \$\begingroup\$ @Aaron ah ok i see sorry. Thought it was code-golf. \$\endgroup\$ – Stephan Schinkel Nov 10 '15 at 13:44
  • \$\begingroup\$ @StephanSchinkel you don't have to be sorry, popularity-contest are by nature opinion-based and feersum's answer has its merits. They were just not up to my expectations ! \$\endgroup\$ – Aaron Nov 10 '15 at 13:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.