3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo htmlentities(" abc<>^&etc'\"wee<>") . "\n"; echo htmlspecialchars(" abc<>^&etc'\"wee<>");

preferences:
40.34 ms | 402 KiB | 5 Q