3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $s = "\xec\xe5\xf5\xe0\xed\xe8\xe7\xe8\xf0\xee\xe2\xe0\xed\xed\xe0\xff-\xf8\xf2\xf3\xea\xe0\xf2\xf3\xf0\xea\xe024.\xf0\xf4"; $s = "\xec\xe5\xf5\xe0\xed\xe8\xe7\xe8\xf0\xee\xe2\xe0\xed\xed\xe0\xff"; echo UConverter::transcode($s, 'UTF-16', 'UTF-8')."\n"; // echo iconv("UTF-8", "ISO-8859-1", $s); // echo $utf16_string; echo mb_convert_encoding($s, "UTF-8", "ISO-8859-1"); echo "\n"; var_dump(mb_detect_encoding($s)); echo "\n"; var_dump(mb_detect_encoding($s, ['ISO-8859-1', 'ISO-8859-5', 'UTF-8'])); echo "\n"; var_dump(mb_detect_encoding($s, ['ISO-8859-5', 'UTF-8', 'ISO-8859-1'])); echo "\n";
Output for git.master_jit, git.master
���������������������������������� ìåõàíèçèðîâàííàÿ string(5) "ASCII" string(10) "ISO-8859-1" string(10) "ISO-8859-1"

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:
40.79 ms | 405 KiB | 5 Q