<?php 
ob_end_clean();//修改部分
for ($i=10; $i>0; $i--){
    echo $i;
    flush();
    sleep(1);
}
?>