3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="Ssampl=_e products!@, products#$#, sample"; $keywords = preg_replace("/[^, \w]+/", '',($_POST['keywords'])); echo $keywords;

preferences:
36.27 ms | 402 KiB | 5 Q