Skip to main content
added 207 characters in body
Source Link
Alex Howansky
  • 1.2k
  • 8
  • 13

PHP, 4040 35 33 bytes

$d=datewhile(Y$i<121);whileecho date($i<121Y)echo$d-$i++." ";_;

I'm just going to pretend that error reporting is always disabled for code golfing... :)

[Edit 1: Saved 5 bytes via manatwork]

[Edit 2: Saved 2 bytes via Titus]

PHP, 40 bytes

$d=date(Y);while($i<121)echo$d-$i++." ";

PHP, 40 35 33 bytes

while($i<121)echo date(Y)-$i++._;

I'm just going to pretend that error reporting is always disabled for code golfing... :)

[Edit 1: Saved 5 bytes via manatwork]

[Edit 2: Saved 2 bytes via Titus]

Source Link
Alex Howansky
  • 1.2k
  • 8
  • 13

PHP, 40 bytes

$d=date(Y);while($i<121)echo$d-$i++." ";