3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "testing À, Ç, É, Ê "; echo htmlentities($str, null, 'UTF-8');

preferences:
34.07 ms | 402 KiB | 5 Q