My dev and production env doesn't have the same exact version
My Dev env : PHP 7.0.31-1+ubuntu14.04.1+deb.sury.org+1 (cli)
My prod env : PHP 7.0.30 (cli)
For the exact same text this regular expression
preg_match_all('/%occupancies%((?!%endoccupancies%).|\n)*%endoccupancies%/', $text, $matches);
find matches in my dev env but not in prod
Code simple :
http://sandbox.onlinephpfunctions.com/code/b4541decc65089269f6aae0e4392dc9081c14615
Is there a way to fix this without upgrading my php version ?