3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "当当网"; print htmlspecialchars($str, ENT_COMPAT, 'gb2312') . "\n";
based on kE1Sc
Output for 4.3.2 - 5.2.11, 5.3.0 - 5.3.1, 5.4.0 - 7.2.0
当当网
Output for 5.2.12 - 5.2.17, 5.3.2 - 5.3.29
Output for 4.3.0 - 4.3.1

Process exited with code 139.