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/]#', '', $str); var_dump($a);
Output for 4.3.11 - 5.6.28, 7.0.0 - 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/iv6LO on line 4 NULL
Output for 4.3.0 - 4.3.10, hhvm-3.12.0
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/iv6LO on line 4 NULL
Output for hhvm-3.10.0

Process exited with code 153.