3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $param = "%E7%91%9E%E6%80%9D%E5%AD%A6%E7%A7%91%E8%8B%B1%E8%AF%AD"; $decodeParam = urldecode($param); echo iconv("gb2312", "UTF-8", $decodeParam); echo mb_convert_encoding(urldecode($param), "utf-8", "ISO-8859-1//IGNORE");
based on WgZJj
Output for 5.6.7 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.0
Notice: iconv(): Detected an illegal character in input string in /in/mcFR6 on line 4 Warning: mb_convert_encoding(): Illegal character encoding specified in /in/mcFR6 on line 5 瑞思学科英语
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/mcFR6:4 Stack trace: #0 {main} thrown in /in/mcFR6 on line 4
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv() in /in/mcFR6 on line 4
Process exited with code 255.
Output for 5.3.18 - 5.5.34
Notice: iconv(): Detected an illegal character in input string in /in/mcFR6 on line 4 Warning: mb_convert_encoding(): Illegal character encoding specified in /in/mcFR6 on line 5 瑞思学科英语