Skip to main content
2 of 4
-16 bytes, use strings instead of array (duh)
640KB
  • 11.9k
  • 2
  • 35
  • 57

PHP, 104 88 bytes

for(;$i++<$argn;$a.='**',$i++>1?$o=$s.$o:1)$o.=$s=str_pad("*$a",$argn,' ',2)."
"?><?=$o;

Try it online!

This doesn't beat the lowest scores for PHP on this challenge, but it's just too crazy for me to throw away.

Okay, so I've golfed it to now be the lowest scored PHP on this challenge, but it doesn't change the fact that it's still crazy.

$ echo 7|php -nF hour.php
*******
 *****
  ***
   *
  ***
 *****
*******
640KB
  • 11.9k
  • 2
  • 35
  • 57