I can’t get var_dump to work in a for loop

I try to get var_dump to give me $w but my $w want to get closed with a } and if do it, var_dump isn’t readable. I don’t know how to solve this problem please help me.

$month = date('m');
$year  = date('Y');


    for ( $i = 1; $i <= cal_days_in_month(CAL_GREGORIAN, $month, $year, $i++)
        {
            $w = 
            [
            "$i-$month-$year" => "0"
            ];
            $x =
            [
            "$datumVorlauf" => "$numberVorlaufMonth"
            ];

            $y =
            [
            "$datumGebucht" => "$numberGebuchtMonth"
            ];

            $z =
            [
            "$datum" => "$numberGebuchtLastMonth"
            ];
            var_dump($w);
        }

Answer

  $month = date('m');
  $year  = date('Y');


      for ( $i = 1; $i <= cal_days_in_month(CAL_GREGORIAN, $month, $year); $i++)
          {
              $w[$i] =$i-$month-$year;
              var_dump($w);
          }

u forgot to close the bracket and semi-colon of (CAL_GREGORIAN, $month, $year);