Skip to main content
added 9 characters in body
Source Link
Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59

PHP, 82 29 24 2929 28 characters

<?=strrev(fread(STDIN,10002e9)); 

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

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

PHP, 82 29 24 29 28 characters

<?=strrev(fread(STDIN,2e9)); 

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

added 58 characters in body
Source Link
Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59

PHP, 82 29 24 characters (Doesn't Work)24 29 characters

<?=strrev(fgetsfread(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

PHP, 82 29 24 characters (Doesn't Work)

<?=strrev(fgets(STDIN)); 

82 -> 29: The new line character is preserved when reversed with strrev.
29 -> 24: Uses the shortcut syntax now

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

added 15 characters in body
Source Link
Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59

PHP, 82 29 24 characters (Doesn't Work)

<?=strrev(fgets(STDIN)); 

82 -> 29: The new line character is preserved when reversed with strrev.
29 -> 24: Uses the shortcut syntax now

PHP, 82 29 24 characters

<?=strrev(fgets(STDIN)); 

82 -> 29: The new line character is preserved when reversed with strrev.
29 -> 24: Uses the shortcut syntax now

PHP, 82 29 24 characters (Doesn't Work)

<?=strrev(fgets(STDIN)); 

82 -> 29: The new line character is preserved when reversed with strrev.
29 -> 24: Uses the shortcut syntax now

added 5 characters in body; added 42 characters in body
Source Link
Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59
Loading
deleted 126 characters in body
Source Link
Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59
Loading
Source Link
Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59
Loading