I can’t remember when that feature was introduced so the current version (Photoshop CC 2017) would seem to be the one to try because Adobe does not sell perpetual licenses anymore anyway.
So even if the feature had been introduced back in some CS-version you might not be able to procure a legitimate license for that.