3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is a placeholder #string and it looks @great right?"; $newstring = preg_replace("/@\w+\s/", "", $string); print $newstring;

preferences:
24.85 ms | 404 KiB | 5 Q