3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '<a class="mug js-simulcast-episode-link" id="nowshowing_thumb_777521" style="display: block;" href="/that-time-i-got-reincarnated-as-a-slime/episode-3-battle-at-the-goblin-village-777521" token="now_showing_mug" data-series-name="That Time I Got Reincarnated as a Slime" data-episode-name="Battle at the Goblin Village"> <img class="welcome-media-mug" src="https://img1.ak.crunchyroll.com/i/spire4-tmb/cec7b1597bd1969479a3210d99468d701539609551_wide.jpg" alt="That Time I Got Reincarnated as a Slime Episode 3"> </a>'; echo htmlspecialchars(htmlspecialchars($a));
Output for 7.3.0rc3
&amp;lt;a class=&amp;quot;mug js-simulcast-episode-link&amp;quot; id=&amp;quot;nowshowing_thumb_777521&amp;quot; style=&amp;quot;display: block;&amp;quot; href=&amp;quot;/that-time-i-got-reincarnated-as-a-slime/episode-3-battle-at-the-goblin-village-777521&amp;quot; token=&amp;quot;now_showing_mug&amp;quot; data-series-name=&amp;quot;That Time I Got Reincarnated as a Slime&amp;quot; data-episode-name=&amp;quot;Battle at the Goblin Village&amp;quot;&amp;gt; &amp;lt;img class=&amp;quot;welcome-media-mug&amp;quot; src=&amp;quot;https://img1.ak.crunchyroll.com/i/spire4-tmb/cec7b1597bd1969479a3210d99468d701539609551_wide.jpg&amp;quot; alt=&amp;quot;That Time I Got Reincarnated as a Slime Episode 3&amp;quot;&amp;gt; &amp;lt;/a&amp;gt;