<?php
for ($i = 0; $i < 3; $i++) echo $i . "\n";
for ($i = 0; $i < 3; ++$i) echo $i . "\n";
$i = 0;
while ( $i < 3) {
echo $i . "\n";
$i++;
}
$i = 0;
while ( $i < 3) {
echo $i . "\n";
++$i;
}
$i = 0;
while ( $i < 3) echo $i++ . "\n";
$i = 0;
while ( $i < 3) echo ++$i . "\n";
PD9waHAKZm9yICgkaSA9IDA7ICRpIDwgMzsgJGkrKykgZWNobyAkaSAuICJcbiI7CmZvciAoJGkgPSAwOyAkaSA8IDM7ICsrJGkpIGVjaG8gJGkgLiAiXG4iOwokaSA9IDA7CndoaWxlICggJGkgPCAzKSB7IAoJZWNobyAkaSAuICJcbiI7CgkkaSsrOwp9CiRpID0gMDsKd2hpbGUgKCAkaSA8IDMpIHsKCWVjaG8gJGkgLiAiXG4iOwoJKyskaTsKfQokaSA9IDA7CndoaWxlICggJGkgPCAzKSBlY2hvICRpKysgLiAiXG4iOwokaSA9IDA7CndoaWxlICggJGkgPCAzKSBlY2hvICsrJGkgLiAiXG4iOw==