3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '<?xml version="1.0" encoding="UTF-8"?> <resources> <string name="en_home">Home</string> <string name="fr_home">Maison</string> <string name="zh_home">家</string> </resources>'; $string = htmlspecialchars($string); print_r($string);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;resources&gt; &lt;string name=&quot;en_home&quot;&gt;Home&lt;/string&gt; &lt;string name=&quot;fr_home&quot;&gt;Maison&lt;/string&gt; &lt;string name=&quot;zh_home&quot;&gt;家&lt;/string&gt; &lt;/resources&gt;