3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'V&#xe4;xj&#xf6;'; $b = html_entity_encode($a, 'UTF-8'); print_r($b);

preferences:
39.93 ms | 402 KiB | 5 Q