3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "''<>\"\" , '-. _ @ / > < = "; $x = filter_var($test, FILTER_SANITIZE_STRING); var_dump($x);
based on NJnMW
Output for 5.6.0 - 7.3.0alpha1
string(39) "&#39;&#39;&#34;&#34; , &#39;-. _ @ / > "