Per https://stackoverflow.com/help/licensing:
As noted in the Stack Exchange Terms of Service and in the footer of every page, all publicly accessible user
contributions are licensed under Creative Commons Attribution-ShareAlike license as follows:
Content contributed before 2011-04-08 (UTC) is distributed under the terms of CC BY-SA 2.5.
Content contributed from 2011-04-08 up to but not including 2018-05-02 (UTC) is distributed under the terms of CC BY-SA 3.0.
Content contributed on or after 2018-05-02 (UTC) is distributed under the terms of CC BY-SA 4.0.