This inverter uses one power source and four mosfets to work. Only two PWM signals are turned on at the same time. Probably two PWM signals are enough, but I couldn't get that to work here.
Two circuits: https://everycircuit.com/circuit/4904104459239424
Relay version: https://everycircuit.com/circuit/4925669221597184