Can I install and run Safari 8 on OS X 10.11 El Capitan?
I'm a web developer as well with a need to test on older versions of Safari. Here's your best bet (caveat: this assumes you own VMware Fusion or a similar virtual machine emulator that can handle Mac OS).
Assuming you've upgraded your Mac through previous versions of Mac OS (Yosemite, El Capitan, etc), you can still access those in the AppStore under "Purchased." Find the OS you want and click the "Download" button.
Once it's done, check your /Applications folder for "Install El Capitan" (I forget the exact filename, but it begins with "Install"). With VMware Fusion, it's insanely easy to install this as a virtual machine. Open up Fusion and add a new machine, and choose "Install from disc or image" and simply drag/drop the Mac OS installer app onto the VMware import window.
Follow the usual steps to install a virtual machine, make sure you allocate enough RAM, and you're good to go! By doing this, I was able to install El Capitan as a virtual OS on my Sierra machine, and test on Safari 9.