<?php
$vetor = [];
for ($i=0 ; $i < 10 ; $i++) {
    fscanf(STDIN, "%f", $entrada);
    $vetor[$i] = $entrada;
    echo "Vetor de índice {$i} é: {$vetor[$i]}\n";
}
?>

Embed on website

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