3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'укгезәөшөхзәхөшк2049һһлдябчсячмииюсит.июбҗрарэ'; /* Detect character encoding with current detect_order */ echo mb_detect_encoding($str)."\n"; /* "auto" is expanded according to mbstring.language */ echo mb_detect_encoding($str, "auto")."\n"; /* Specify encoding_list character encoding by comma separated list */ echo mb_detect_encoding($str, "JIS, eucjp-win, sjis-win")."\n"; /* Use array to specify encoding_list */ $ary[] = "ASCII"; $ary[] = "JIS"; $ary[] = "EUC-JP"; echo mb_detect_encoding($str, $ary);
Output for git.master, git.master_jit
UTF-8 UTF-8 SJIS-win
Output for rfc.property-hooks
UTF-8 UTF-8 SJIS-win JIS

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