Qualcuno saprebbe drmi per quale motivo il sottoelencato codice non visualizza alcuna immaginer a video mentre se sposto qualche riga di calcolo funziona alla grande ?

Codice PHP:
header("Content-type: image/png");

     
$W 500;
     
$H 400;
     
$R10.10;
     
$R20.30;
     
     
// SET SCALA MASSIMA
     
$Scale $R2 $R2 4;
     
     
// SET IMMAGINE
     
$Margin 50;

     
// CREAZIONE IMMAGINE
     
$img=imagecreate(500400);

     
// ALLOCAZIONE DEI COLORI
     
$sfondo = @imagecolorallocate $img 245 245 245 );
     
$grigio = @imagecolorallocate $img 200 200 200 );
     
$nero   = @imagecolorallocate $img 0   0   0   );
     
$rosso  = @imagecolorallocate $img 255 0   0   );
     
$verde  = @imagecolorallocate $img 0   255 0   );

     
// DISEGNO ASSI CARTESIANI
     
@imageline $img $Margin $Margin  $H $Margin $nero );
     @
imageline $img $Margin $H $Margin $W  $H $Margin $nero );

     
// RIDEFINISCO AREA DI STAMPA DEL GRAFICO
     
$W -= $Margin;
     
$H -= $Margin;

     
// STAMPA LINEE GUIDA ORIZZONTALI
     
$Passo $Scale 10 ;
     
$y $Passo ;
     for ( 
$j=$j 10  $j++ )
     {
          
// STAMPA DELLE LINEE DI RIFERIMENTO ORIZZONTALI
          
@imageline $img $Margin $H - ( ( $H $y ) / $Scale ) , $W $Margin  $H - ( ( $H $y ) / $Scale )  , $grigio );

          
// STAMPA DELLE ETICHETTE DI RIFERIMENTO SULL'ASSE Y
          
if ( $j )
               @
imageString $img $H - ( ( $H $y ) / $Scale ) - 7  $y $nero );

          
// AGGIORNAMENTO DEL PASSO
          
$y += $Passo;
     }

     
// STAMPA DEL GRAFICO
     
$Passo $W / ( count($Values) - );              // SCELTA DEL PASSO SULL'ASSE X IN RELAZIONE AL NUMERO DI ELEMENTI DA RIPORTARE
     
$x $Margin ;                                     // PUNTO DI INIZIO PER L'ASSE X
     
for ( $j=$j count($Values)  ; $j++ )
     {
          
// STAMPA DELLA GRIGLIA VERTICALE E DELL' ETICHETTA SULL'ASSE X
          
if ( $j )
          {
               @
imageline   $img $x $x  $H 1  $grigio );
               @
imageString $img $x $H  $j $nero );
          }

          
// STAMPA DEL PUNTO DI RIFERIMENTO DEL VALORE
          
@imagefilledarc $img $x  $H - ( ( $H $Values[$j] ) / $Scale ) , 0360 $nero IMG_ARC_PIE );

          
// AGGIORNAMENTO DELL'ASSE DELLE X
          
$x += $Passo;

          
// STAMPA DELLA LINEA DI INTERPOLAZIONE
          
if ( $j count($Values)-)
              @
imageline$img $x $Passo $H - ( ( $H $Values[$j] ) / $Scale ) , $x  $H - ( ( $H $Values[$j+1] ) / $Scale )  , $nero );
     }

     
// STAMPA LINEE DI RIFERIMENTO
     
@imageline($img $Margin $H - ( ( $H $R1 ) / $Scale ) , $W $Margin  $H - ( ( $H $R1 ) / $Scale )  , $verde );
     @
imageline($img $Margin $H - ( ( $H $R2 ) / $Scale ) , $W $Margin  $H - ( ( $H $R2 ) / $Scale )  , $rosso );

     
// SALVATAGGIO IMMAGINE E DEALLOCAZIONE DELLA MEMORIA UTILIZZATA
     
@imagePng $img );
     @
imagedestroy $img ); 
echo '[img]fx_GRAPH_LINE.php[/img]';