3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_try_author = 'author@democracynow.org (author)'; $_try_author = trim(preg_replace('#[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}#i', '', $_try_author)); $_try_author = trim(preg_replace('#[<()>\[\]+-\*]#',' ',$_try_author)); echo $_try_author;
based on nEJdM
Output for 4.3.11 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Compilation failed: range out of order in character class at offset 12 in /in/PSNRE on line 4
Output for 4.3.0 - 4.3.10, hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: range out of order in character class at offset 12 in /in/PSNRE on line 4