Environment Parity
developer
Environment parity means staging matches production in runtime versions, extensions and configuration, so bugs do not appear only after release. Differences in PHP versions or missing extensions are the classic source of 'works on staging'.
Pin runtime versions in the repository and provision staging from the same image as production.
A staging server on PHP 8.2 while production runs 8.3 hides an extension incompatibility until launch day.
Related topics
Frequently asked question
What is Environment Parity?
Environment parity means staging matches production in runtime versions, extensions and configuration, so bugs do not appear only after release. Differences in PHP versions or missing extensions are the classic source of 'works on staging'. Pin runtime versions in the repository and provision staging from the same image as production.
Read the full answer