$X=1;
while($X<=16)
{
echo “$X
“;
$X=$X*2;
}
?>

The output will be
1
2
4
8
16