Lo he solucionado asi
Código PHP:
#include <stdio.h>
#include <conio.h>
main (){
int pb=0,pm=0,j,i;
int rtau[8];
char n[30];
int end;
int rtas[]={6213,4151,7897,1246,8282,96423,4532,245099999};
printf("\n\n TEST DE DIGITACION \n\n");
for(i=0; i<8; i++){
printf(" ");
printf("%d",rtas[i]);
printf(" : ");
scanf("%d",&rtau[i]);
}
printf("%s", "\n CALIFICACION DEL SEÑOR (A) ");
for (i=0; i<7; i++){
if (rtas[i] == rtau[i]){
pb = pb + 1;
}
}
pm = 8 - pb;
printf("\n\n Respuestas acertadas: ");
printf("%d",pb);
scanf("%d",&end);
}