3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<>&'\""; echo htmlspecialchars($str, ENT_QUOTES), PHP_EOL; echo htmlspecialchars($str, ENT_QUOTES|ENT_HTML5);

preferences:
30.22 ms | 404 KiB | 5 Q