https://www.quora.com/Which-is-worse-for-the-engine-putting-diesel-in-a-petrol-car-or-petrol-in-a-diesel-car" Its definitely a lot worse for the diesel engine.
First of all, you can't fill a petrol car with diesel by mistake. Diesel nozzles are bigger than the filler neck on petrol cars. Also, there is a plate under the neck to prevent any intrusion but the small petrol nozzle, which was designed to prevent drivers from putting leaded(big nozzle too) petrol in the first place. If you happen to do that somehow, you wont damage the engine even if you try to start it.
Diesel is heavier than the gasoline, and much more "oily". It needs pressure to be ignited and does not evaporate as gasoline do. What happens after putting diesel on a tank is, diesel sank and injectors feed the engine a load of diesel. When you try to ignite the engine, spark plugs won't be able to fire the diesel and the engine won't start.
To fix the issue, draining the tank and filling it again with gasoline ,cleaning the injectors and finally cranking the engine to throw up the unwanted diesel would suffice. Some may want to change the fuel filter to be on the safe side but it is not a must.
The other way around, putting petrol on a diesel engine, is much more complicated. A diesel car can be filled with petrol rather easily, as the filler neck allows all nozzle kinds smaller than the diesel nozzle inside (which is basically every nozzle available).
Modern diesel engines operate at very high pressures and within very fine tolerances. Also the fuel act as a lubricant for the engine and the injection system. When petrol meets the diesel engine, it acts as a thinner, causing the fuel to lose its lubrication properties and cause the engine and fuel pump to wear down through friction. If it comes this far, whole fuel system needs to be flushed and if there are any damaged components, they need to be changed. (Probably a few)
If things go a little far, by trying to start the engine (may start) and try to drive; additional damage may happen by pre detonation. As petrol is much more volatile than the diesel, and diesel needs high pressure to be combusted, with so much pressure and air, petrol prematurely combusted and forcing pistons to rise and go back down out of their order. This kind of force may prove disastrous for many internal components in the engine block.
If you happen to fill your car the wrong fuel by any chance, Do not turn on the ignition key - many modern cars circulate the fuel into the fuel system as soon as the battery turned on."