Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • \$\begingroup\$ Actually it's 39 because you have to add either <? or the -r flag \$\endgroup\$ Commented Nov 5, 2015 at 16:11
  • \$\begingroup\$ But you can save one byte more with this: <?for($f=fgetc(STDIN);(print$f)&$f;); - print is like echo but has a return value (always 1) \$\endgroup\$ Commented Nov 5, 2015 at 16:17
  • \$\begingroup\$ @fschmengler Thanks for your feedback. I made it even 2 bytes shorter, by switching (print$f)&$f to $f&print$f. There is a general discussion about the byte count here: Is the PHP opening tag mandatory in byte count?. \$\endgroup\$ Commented Nov 10, 2015 at 19:15