PCRE2 as ext/pcre holds it: compiled patterns shared by every thread,
and per thread the match context (pcre.backtrack_limit,
pcre.recursion_limit and the 32 KiB–192 KiB JIT stack) and the
preallocated match data php_pcre_init_pcre2() creates.
PHP keeps that state per thread too (ZEND_TLS), so a Rust thread
running several patterns behaves like one PHP process.