3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/[^\pL\pM]*/iu', '', 'áéíóú');
Output for 4.4.0 - 4.4.9, 5.0.5, 5.1.0 - 5.1.6, 5.5.27 - 5.5.35, 5.6.11 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.25, 8.0.0 - 8.0.12, 8.1rc1 - rc3
áéíóú
Output for 5.2.9 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.26, 5.6.8 - 5.6.10
����ú
Output for 5.2.0 - 5.2.8
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 3 in /in/ueAJv on line 3
Output for 4.3.1 - 4.3.10
Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/ueAJv on line 3

preferences:
53.45 ms | 464 KiB | 5 Q