<?php
$c1 =3;
$c2 =0;
$c3 =3;
$c4 =1;
function button_one($count)
{
global $c1, $c2, $c3, $c4;
while($count--)
{
$c3++;
$c4++;
}
if($c1 >= 8){$c1 = (int)($c1/8);}
if($c2 >= 8){$c2 = (int)($c2/8);}
if($c3 >= 8){$c3 = (int)($c3/8);}
if($c4 >= 8){$c4 = (int)($c4/8);}
}
function button_two($count)
{
global $c1, $c2, $c3, $c4;
while($count--)
{
$c1++;
$c2++;
$c3++;
}
if($c1 >= 8){$c1 = (int)($c1/8);}
if($c2 >= 8){$c2 = (int)($c2/8);}
if($c3 >= 8){$c3 = (int)($c3/8);}
if($c4 >= 8){$c4 = (int)($c4/8);}
}
function button_three($count)
{
global $c1, $c2, $c3, $c4;
while($count--)
{
$c1++;
$c2++;
}
if($c1 >= 8){$c1 = (int)($c1/8);}
if($c2 >= 8){$c2 = (int)($c2/8);}
if($c3 >= 8){$c3 = (int)($c3/8);}
if($c4 >= 8){$c4 = (int)($c4/8);}
}
function button_four($count)
{
global $c1, $c2, $c3, $c4;
while($count--)
{
$c2++;
$c3++;
$c4++;
}
if($c1 >= 8){$c1 = (int)($c1/8);}
if($c2 >= 8){$c2 = (int)($c2/8);}
if($c3 >= 8){$c3 = (int)($c3/8);}
if($c4 >= 8){$c4 = (int)($c4/8);}
}
$x, $y, $w, $z;
for($x = 0; $x < 100; $x++)
{
button_one($x);
if($c1 == 0 && $c2 == 0 && $c3 == 0 && $c4 == 0)
{ echo $x.$y.$z.$w.'<br>'; }
for($y = 0; $y < 100; $y++)
{
button_two($y);
if($c1 == 0 && $c2 == 0 && $c3 == 0 && $c4 == 0)
{ echo $x.$y.$z.$w.'<br>'; }
for($z= 0; $z< 100; $z++)
{
button_three($z);
if($c1 == 0 && $c2 == 0 && $c3 == 0 && $c4 == 0)
{ echo $x.$y.$z.$w.'<br>'; }
for($w= 0; $w< 100; $w++)
{
button_four($w);
if($c1 == 0 && $c2 == 0 && $c3 == 0 && $c4 == 0)
{ echo $x.$y.$z.$w.'<br>'; }
}
}
}
}
?>