3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Detect character encoding with current detect_order */ echo mb_detect_encoding($str); /* "auto" is expanded according to mbstring.language */ echo mb_detect_encoding($str, "auto"); /* Specify encoding_list character encoding by comma separated list */ echo mb_detect_encoding($str, "JIS, eucjp-win, sjis-win"); /* 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, rfc.property-hooks
Warning: Undefined variable $str in /in/vIohQ on line 3 Deprecated: mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in /in/vIohQ on line 3 ASCII Warning: Undefined variable $str in /in/vIohQ on line 6 Deprecated: mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in /in/vIohQ on line 6 ASCII Warning: Undefined variable $str in /in/vIohQ on line 9 Deprecated: mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in /in/vIohQ on line 9 JIS Warning: Undefined variable $str in /in/vIohQ on line 15 Deprecated: mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in /in/vIohQ on line 15 ASCII

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:
35.61 ms | 402 KiB | 8 Q