Skip to main content
Commonmark migration
Source Link

#PHP no bonus, 19 17 16 14 9 bytes

PHP no bonus, 19 17 16 14 9 bytes

<?=99**9;

prints 913517247483640899

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 6*6 zeroes
  • <?=date(uuuuYY); 16 bytes print 6 zeroes four times and the current year twice

close but no cigar:

  • <?=pi(); 8 bytes print 3.1415926535898 (15 characters; 64 bit machine)
  • <?=log(2); 10 bytes print 0.69314718055995 (16 chars; 64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)

#PHP no bonus, 19 17 16 14 9 bytes

<?=99**9;

prints 913517247483640899

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 6*6 zeroes
  • <?=date(uuuuYY); 16 bytes print 6 zeroes four times and the current year twice

close but no cigar:

  • <?=pi(); 8 bytes print 3.1415926535898 (15 characters; 64 bit machine)
  • <?=log(2); 10 bytes print 0.69314718055995 (16 chars; 64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)

PHP no bonus, 19 17 16 14 9 bytes

<?=99**9;

prints 913517247483640899

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 6*6 zeroes
  • <?=date(uuuuYY); 16 bytes print 6 zeroes four times and the current year twice

close but no cigar:

  • <?=pi(); 8 bytes print 3.1415926535898 (15 characters; 64 bit machine)
  • <?=log(2); 10 bytes print 0.69314718055995 (16 chars; 64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)
improved description; changed shortest version
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41

#PHP no bonus, 19 17 16 14 9 bytes

<?=99**9;

prints 913517247483640899

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 366*6 zeroes
  • <?=date(uuuuYY); 16 bytes print 246 zeroes four times and twice the current year twice

close but no cigar:

  • <?=pi(); 8 bytes print 3.1415926535898 (15 characters; 64 bit machine)
  • <?=log(2); 10 bytes print 0.69314718055995 (16 chars; 64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)

#PHP no bonus, 19 17 16 14 9 bytes

<?=99**9;

prints 913517247483640899

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 36 zeroes
  • <?=date(uuuuYY); 16 bytes print 24 zeroes and twice the current year

close but no cigar:

  • <?=pi(); 8 bytes print 3.1415926535898 (15 characters; 64 bit machine)
  • <?=log(2); 10 bytes print 0.69314718055995 (16 chars; 64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)

#PHP no bonus, 19 17 16 14 9 bytes

<?=99**9;

prints 913517247483640899

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 6*6 zeroes
  • <?=date(uuuuYY); 16 bytes print 6 zeroes four times and the current year twice

close but no cigar:

  • <?=pi(); 8 bytes print 3.1415926535898 (15 characters; 64 bit machine)
  • <?=log(2); 10 bytes print 0.69314718055995 (16 chars; 64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)
improved description; changed shortest version
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41

#PHP no bonus, 19 17 16 14 9 bytes

<?=9**18;=99**9;

prints 150094635296999121913517247483640899

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 36 digitszeroes
  • <?=date(uuuuYY); 16 bytes print 24 zeroes and twice the current year

close but no cigar:

  • <?=pi(); 8 bytes print 15 characters 3.1415926535898 (6415 characters; 64 bit machine)
  • <?=log(2); 10 bytes print 16 chars 0.69314718055995 (6416 chars; 64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)

#PHP no bonus, 19 17 16 14 9 bytes

<?=9**18;

prints 150094635296999121

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 36 digits

close but no cigar:

  • <?=pi(); 8 bytes print 15 characters (64 bit machine)
  • <?=log(2); 10 bytes print 16 chars (64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)

#PHP no bonus, 19 17 16 14 9 bytes

<?=99**9;

prints 913517247483640899

longer versions:

  • echo date(Mc); 14 bytes print the first three letters of the month name followed by
    an ISO-8601 formatted date (like 2017-01-26T21:57:38-08:00 - length=25)
  • var_dump([01]); 15 bytes print array(1) {\n [0]=>\n int(1)\n}\n
  • echo decbin(~0); 16 bytes print 32 ones (on a 32 bit machine)
  • echo md5(12345); 16 bytes print 827ccb0eea8a706c4c34a16891f84e7b
  • <?=str_pad(_,34); 17 bytes print one underscore and 33 spaces.
  • <?=decbin(2**33); 17 bytes print a 1 and 33 zeroes
  • printf("%34d",0); 17 bytes print 33 spaces and a 0
  • echo date(uuuuuu); 18 bytes print 36 zeroes
  • <?=date(uuuuYY); 16 bytes print 24 zeroes and twice the current year

close but no cigar:

  • <?=pi(); 8 bytes print 3.1415926535898 (15 characters; 64 bit machine)
  • <?=log(2); 10 bytes print 0.69314718055995 (16 chars; 64 bit)
  • <?=date(wc); 12 bytes print 26 chars
  • var_dump(_.pi()); 17 bytes print 30 chars (64 bit)
reordered versions
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41
Loading
added 90 characters in body
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41
Loading
more attempts, found 14 bytes
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41
Loading
Post Undeleted by Titus
found a shorter version, added other attempts
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41
Loading
Post Deleted by Titus
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41
Loading