Virtually everyone is aware of the trolley problem in philosophy: a run-away trolley/streetcar/tram is going to kill four people, but you're standing by a switch and you have the capacity to redirect the tram to another track where it will kill one person - do you pull the switch?
The 'trolley problem' is a staple of philosophy - and it is an example of staple method used in philosophy - the thought experiment.
Or put another way, 'what if' questioning. Or to put a fancy term on it: hypotheticals.
Philosophy then, is a sandbox. It is a place for grownups to play with ideas, concepts, hypotheticals, thought-experiments (e.g., in software development).