3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = 'GÖREN GÖZLER KAMAŞIYOR'; echo "Original " . $s . "\n"; echo "Replaced " . preg_replace('#[^\p{L} 0-9?!]#ui', '', $s) . "\n";
based on hDejm
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
Original GÖREN GÖZLER KAMAŞIYOR Replaced GÖREN GÖZLER KAMAŞIYOR
Output for 4.3.11, 5.0.0 - 5.0.4
Original GÖREN GÖZLER KAMAŞIYOR Warning: preg_replace(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/6PBPW on line 4 Replaced
Output for 4.3.0 - 4.3.10
Original GÖREN GÖZLER KAMAŞIYOR Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/6PBPW on line 4 Replaced