3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "\xe2\x82\xac"; var_dump(mb_internal_encoding()); var_dump($string); var_dump(unpack('C*', $string)); $utf8string = mb_convert_encoding($string, "UTF-8"); var_dump($utf8string); var_dump(unpack('C*', $utf8string)); mb_internal_encoding("UTF-8"); var_dump($string); var_dump($utf8string);
Output for git.master, git.master_jit, rfc.property-hooks
string(5) "UTF-8" string(3) "€" array(3) { [1]=> int(226) [2]=> int(130) [3]=> int(172) } string(3) "€" array(3) { [1]=> int(226) [2]=> int(130) [3]=> int(172) } string(3) "€" string(3) "€"

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