3v4l.org

run code in 300+ PHP versions simultaneously
<?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;

Abusive script

This script was stopped while abusing our resources

Output for 7.4.0 - 7.4.1
Warning: preg_replace(): Compilation failed: \N is not supported in a class at offset 5 in /in/OlORs on line 11
Output for 5.3.4 - 5.3.18, 5.4.0 - 5.4.8, 7.3.0 - 7.3.13
bla bla </container>e bla bla bla
Output for 5.3.19 - 5.3.29, 5.4.9 - 5.4.45, 5.5.0, 5.5.2 - 5.5.24, 5.5.27, 5.5.29 - 5.5.32, 5.5.34, 5.5.37 - 5.5.38, 5.6.0 - 5.6.17, 5.6.19 - 5.6.40, 7.0.0 - 7.0.3, 7.0.6 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.12, 7.2.14 - 7.2.26
Warning: preg_replace(): Compilation failed: \N is not supported in a class at offset 4 in /in/OlORs on line 11
Output for 5.5.1, 5.5.25 - 5.5.26, 5.5.28, 5.5.33, 5.5.35 - 5.5.36, 5.6.18, 7.0.4 - 7.0.5, 7.2.13

Process exited with code 137.
Output for 4.4.0 - 4.4.9, 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 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

preferences:
241.23 ms | 401 KiB | 325 Q