3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "\tcafé\n"; //This will remove the tab and the line break echo filter_var($a, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); //This will remove the é.

preferences:
38.89 ms | 402 KiB | 5 Q