3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cp1252 = "\x61\x61\x61\xE7\x62\x62\x62"; // aaaçbbb in Windows-1252 $utf8 = mb_convert_encoding($cp1252, "UTF-8", "Windows-1252"); echo "Hex (1252): ".bin2hex($cp1252)."\n"; echo "Hex (UTF8): ".bin2hex($utf8)."\n"; echo "Plain UTF8: ".$utf8."\n";
Output for git.master, git.master_jit, rfc.property-hooks
Hex (1252): 616161e7626262 Hex (UTF8): 616161c3a7626262 Plain UTF8: aaaçbbb

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