Skip to main content
5 of 6
added 58 characters in body
Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59

PHP, 82 29 24 29 characters

<?=strrev(fread(STDIN,1000)); 

82 -> 29: The new line character is preserved when reversed with strrev.
29 -> 24: Uses the shortcut syntax now
24 -> 29: Now reads all lines instead of a single line

Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59