3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<, >, ", &'; echo htmlentities($html);

preferences:
24.72 ms | 402 KiB | 5 Q