3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str='Película; Films; @Cine; Añoranza; <html></body>foo "bar ";'; var_dump($str); $a = preg_replace('#[^A-Za-z0-9ñÑ-.\s/]+/u#', '', $str); $a = preg_replace('/\s+/', '', $a); var_dump($a);
Output for 4.3.11 - 7.1.0
string(63) "Película; Films; @Cine; Añoranza; <html></body>foo "bar ";" Warning: preg_replace(): Compilation failed: range out of order in character class at offset 16 in /in/mTgCI on line 4 string(0) ""
Output for 4.3.0 - 4.3.10
string(63) "Película; Films; @Cine; Añoranza; <html></body>foo "bar ";" Warning: Compilation failed: range out of order in character class at offset 16 in /in/mTgCI on line 4 string(0) ""