3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '你好'; $input_encoding = 'GBK'; $str_gb = iconv('UTF-8', 'GBK', true); echo sprintf("gb encoding :%s\n", $str_gb); echo sprintf("gb encoding md5:%s\n", md5($str_gb));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "GBK" is not allowed in /in/e2Adb on line 4 gb encoding : gb encoding md5:d41d8cd98f00b204e9800998ecf8427e

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:
42.57 ms | 401 KiB | 8 Q