3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '杭州华辰假日宾馆'; echo html_entity_decode($string,ENT_XML1, 'UTF-8'); echo '<br>'; echo htmlentities($string, ENT_COMPAT | ENT_XML1, 'UTF-8'); echo '<br>'; echo iconv('UTF-8', 'ASCII//TRANSLIT', $string);
Output for 5.4.0 - 5.5.34, 5.6.0 - 5.6.20, 5.6.28 - 7.0.5, 7.0.14 - 7.1.0
杭州华辰假日宾馆<br>杭州华辰假日宾馆<br>????????
Output for 7.0.6 - 7.0.10
杭州华辰假日宾馆<br>杭州华辰假日宾馆<br> Fatal error: Uncaught Error: Call to undefined function iconv() in /in/cNovb:9 Stack trace: #0 {main} thrown in /in/cNovb on line 9
Process exited with code 255.
Output for 5.5.35 - 5.5.38, 5.6.21 - 5.6.25
杭州华辰假日宾馆<br>杭州华辰假日宾馆<br> Fatal error: Call to undefined function iconv() in /in/cNovb on line 9
Process exited with code 255.
Output for 5.0.0 - 5.3.29
Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/cNovb on line 5 Warning: html_entity_decode() expects parameter 2 to be long, string given in /in/cNovb on line 5 <br> Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/cNovb on line 7 杭州华辰假日宾馆<br>????????
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/cNovb on line 5 Warning: html_entity_decode() expects parameter 2 to be long, string given in /in/cNovb on line 5 <br> Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/cNovb on line 7 杭州华辰假日宾馆<br> Fatal error: Call to undefined function: iconv() in /in/cNovb on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/cNovb on line 5 Warning: html_entity_decode() expects parameter 2 to be long, string given in /in/cNovb on line 5 <br> Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/cNovb on line 7 杭州华辰假日宾馆<br> Fatal error: Call to undefined function: iconv() in /in/cNovb on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/cNovb on line 5 Warning: html_entity_decode() expects parameter 2 to be long, string given in /in/cNovb on line 5 <br> Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in /in/cNovb on line 7
Process exited with code 139.