0,1,2,3,4,5,6,7,8,9,10,

ok

<?php 
    $i 
0;
    while(
$i <= 10)
    {
        
sleep(1);
        print(
$i.',');
        
$i++;
    }
?>
<p>ok</p>
<?php highlight_file($_SERVER['SCRIPT_FILENAME']); ?>