PHP versions compatible with WooCommerce (see https://wordpress.org/plugins/woocommerce/ - currently 7.4, treat this like the WP recommended version - probably the same anyway)
Internal PHP version stats (ideally based on hosting-level stats, but use Hiive as the fallback data source - Anything with more than 5% usage globally https://hiive.cloud/admin/php, or based on the brand plugin in question https://hiive.cloud/admin/brands)
If we apply all these rules without hosting-level PHP version stats, we're looking at PHP 7.2 as our lowest supported version. However, for Bluehost and HostGator we support 7.3+. That said, I think we should be fine to support PHP 7.3+ for all plugins, given the only rule that would dictate we support 7.2 would be if we support the lowest compatible version for the last 3 WP versions. If we ignore that rule the minimum becomes 7.3+ based on usage stats. Unless the hosting stats show otherwise, we'll use what we have from Hiive.
This is our current rule:
If WordPress currently recommends PHP 7.4, we support two versions prior, which would be 7.2. See https://github.com/newfold-labs/how-we-work/blob/8452b832a53b4203310316b746c928d633bd9a72/5-wordpress.md?plain=1#L25-L33
We should probably create a clearer rule regarding PHP versions that take into account a few things:
If we apply all these rules without hosting-level PHP version stats, we're looking at PHP 7.2 as our lowest supported version. However, for Bluehost and HostGator we support 7.3+. That said, I think we should be fine to support PHP 7.3+ for all plugins, given the only rule that would dictate we support 7.2 would be if we support the lowest compatible version for the last 3 WP versions. If we ignore that rule the minimum becomes 7.3+ based on usage stats. Unless the hosting stats show otherwise, we'll use what we have from Hiive.