<?php
$vetorArray = [];
$armazenadorIndiceDoMenor = 0;
$menorValor = 0;
for ($indice = 0; $indice < 10 ; $indice++) {
    fscanf(STDIN, "%f\n", $vetorArray[$indice]);
}
for ($armazenadorIndiceDoMenor = 9, $indice = 8; $indice >= 0; $indice--) {
        if($vetorArray[$indice] < $vetorArray[$armazenadorIndiceDoMenor]) {
            $armazenadorIndiceDoMenor = $indice;
        }
}
echo $armazenadorIndiceDoMenor+1 . "\n";
?>

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: