As Chris says, you may well compromise safety if you did a swap.
Also, I suspect the price difference between similar condition 4 & 8 cylinder cars will be far less than the cost (& anguish) of putting a V8 in a 4 pot car. The gearbox, propshaft & diff would need changing, as well of course as...