3v4l.org

run code in 300+ PHP versions simultaneously
<?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");
Output for git.master, git.master_jit, rfc.property-hooks
Warning: iconv(): Wrong encoding, conversion from "gb2312" to "UTF-8" is not allowed in /in/mcFR6 on line 4 Fatal error: Uncaught ValueError: mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "ISO-8859-1//IGNORE" in /in/mcFR6:5 Stack trace: #0 /in/mcFR6(5): mb_convert_encoding('\xE7\x91\x9E\xE6\x80\x9D\xE5\xAD\xA6\xE7\xA7\x91\xE8\x8B\xB1...', 'utf-8', 'ISO-8859-1//IGN...') #1 {main} thrown in /in/mcFR6 on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.4 ms | 402 KiB | 8 Q