I drive around with an empty trailer and pick up the pallets that
local businesses set out by the kerb. They make great
firewood, superb
biochar, and handy building material for small projects. They are nearly all made out of heat-treated timber, partly for the modest increase in durability, but also so that they will have an easier time clearing customs at overseas ports. It's a cheap way to get modest lengths of uniform profile, mostly 4x1, 3x2, and 4x2. Great for making garden gates, frames and stands for stuff.
I've found that heat-treated pine lasts about twice as long exposed to the elements versus untreated, which usually rots in a year or so. If I am lucky and score eucalypts, they can be durable for several years as long as they're not in contact with the ground.