3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'bla bla </container> e <container style="autore"> bla bla bla'; $value = preg_replace('#[\n\N]?([a-z]+)[\n\N]?<container style="autore">#m', '\1', $string); echo $value;
Output for 5.3.19 - 5.3.29, 5.4.9 - 7.1.0
Warning: preg_replace(): Compilation failed: \N is not supported in a class at offset 4 in /in/OlORs on line 11
Output for 5.3.4 - 5.3.18, 5.4.0 - 5.4.8
bla bla </container>e bla bla bla
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.3.3
Warning: preg_replace(): Compilation failed: PCRE does not support \L, \l, \N, \U, or \u at offset 4 in /in/OlORs on line 11
Output for 4.3.11, 5.0.0 - 5.0.4
Warning: preg_replace(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in /in/OlORs on line 11
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in /in/OlORs on line 11