3v4l.org

run code in 200+ 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 - 7.2.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
Warning: Compilation failed: range out of order in character class at offset 12 in /in/PSNRE on line 4