3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clean_field($content){ $result = htmlentities($content, ENT_COMPAT | ENT_IGNORE, "UTF-8"); return $result; } echo clean_fields(" uyhweifyh "); echo clean_fields(""); echo clean_fields(NULL); echo clean_fields(" Basti&#243;n SL "); echo clean_fields("'Basti&#243;n SL'"); ?>

preferences:
49.22 ms | 402 KiB | 5 Q