then, the discussion about branching is out. supporting 2.2 is as easy as removing the preg_match altogether :)