A team writes a small web service. On the developer's laptop it runs perfectly. It is copied to the test server, where it also works. On the production server it crashes at start. The code is identical in all three places, so the difference must be everything around it.
Each machine has its own operating system packages, its own versions of shared libraries and its own settings. Here the laptop and the test server have version 2.1 of a library, while production still has 1.9, which lacks a function the code calls. "It works on my machine" is the phrase that names this gap.
✦Key idea
The bug is not in the code. It is in an unrecorded difference between environments.