3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello, there! Welcome to <>?@#$!& our site<!END!>"; $string = preg_replace("/<!END!>(*SKIP)(FAIL)|[^A-Za-z0-9 ]/", "", $string); echo $string;

preferences:
53.14 ms | 404 KiB | 5 Q