<?php
$data_inicio = new DateTime("08-02-2018");
$data_fim = new DateTime("10-04-2018");
$dateInterval = $data_inicio->diff($data_fim);
for ($i = 1; $i < $dateInterval->days; $i++) {
$interval = date_interval_create_from_date_string("+1 days");
echo $data_inicio->add($interval)
->format("d/M/Y"), PHP_EOL;
}
PD9waHAKCiRkYXRhX2luaWNpbyA9IG5ldyBEYXRlVGltZSgiMDgtMDItMjAxOCIpOwokZGF0YV9maW0gPSBuZXcgRGF0ZVRpbWUoIjEwLTA0LTIwMTgiKTsKJGRhdGVJbnRlcnZhbCA9ICRkYXRhX2luaWNpby0+ZGlmZigkZGF0YV9maW0pOwoKCmZvciAoJGkgPSAxOyAkaSA8ICRkYXRlSW50ZXJ2YWwtPmRheXM7ICRpKyspIHsKICAgICRpbnRlcnZhbCA9IGRhdGVfaW50ZXJ2YWxfY3JlYXRlX2Zyb21fZGF0ZV9zdHJpbmcoIisxIGRheXMiKTsKICAgIAogICAgZWNobyAkZGF0YV9pbmljaW8tPmFkZCgkaW50ZXJ2YWwpCiAgICAgICAgLT5mb3JtYXQoImQvTS9ZIiksIFBIUF9FT0w7Cn0=