It's possible to download old source code versions from open source projects. I want to learn from history. Maybe, more people in Stack Overflow want to learn from history too.
What open source projects do you know that made a transition from bad php code to good php code? How do you describe the transition (big, fast, easy...)?
What code smells am I going to see? What best practices am I going to see? Any additional reason(s) to use your example(s)?