3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
当当网
Output for hhvm-3.10.0 - 3.13.2
Fatal error: gb2312 is not implemented yet. in /in/bUTLC on line 4
Process exited with code 255.
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.