3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "Dörsch"; $s2 = htmlentities($s,ENT_QUOTES,'UTF-8'); echo $s; echo $s2;

preferences:
38.42 ms | 402 KiB | 5 Q