3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = ' this is ok so far <php> but this part here will be missing'; print_r(filter_var ($query, FILTER_SANITIZE_STRING));

preferences:
43.35 ms | 402 KiB | 5 Q