<?php $z=$j=$argv[1];while($j){$i=(--$j&&$i)?$z.str_pad('',strlen($z)*($z-2)).$z:str_repeat($z,$z);echo"$i\n";}
15
Standard output is empty
PHP Notice: Undefined offset: 1 in /home/jDRDHZ/prog.php on line 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!