Result

WA

Duration

826ms

Code [DL]

<?php
$y=fgets(STDIN)+0;
$x=fgets(STDIN)+0;
echo str_repeat("*",$x)."\n";
for($i=0;$i<$y-2;$i++){echo ("*".str_repeat(" ",$x)."*\n");}
echo str_repeat("*",$x);
?>

stdin

42
33

stdout

*********************************
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*                                 *
*********************************

stderr

PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 3

strace