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:
25.61 ms | 402 KiB | 5 Q