3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $detect = array('ASCII', 'Windows-1252', 'UTF-8', 'ISO-8859-15'); $num_before = null; $det_before = null; for ($num = 0; $num < 256; $num++) { $char = chr($num); $det = mb_detect_encoding($char, $detect, true); if ($det_before !== null) { if ($det !== $det_before) { printf("0x%02x - 0x%02x: %s\n", $num_before, $num - 1, $det_before); $det_before = $det; $num_before = $num; } } else { $det_before = $det; $num_before = $num; } } printf("0x%02x - 0x%02x: %s\n", $num_before, $num - 1, $det);
Output for 4.4.2 - 4.4.9, 5.1.2 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
0x00 - 0x00: ASCII 0x01 - 0x08: UTF-8 0x09 - 0x0a: ASCII 0x0b - 0x0c: UTF-8 0x0d - 0x0d: ASCII 0x0e - 0x1f: UTF-8 0x20 - 0x7f: ASCII 0x80 - 0x9f: Windows-1252 0xa0 - 0xff: ISO-8859-15
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.3 - 4.4.1, 5.0.0 - 5.1.1
0x00 - 0x00: ASCII 0x01 - 0x08: UTF-8 0x09 - 0x0a: ASCII 0x0b - 0x0c: UTF-8 0x0d - 0x0d: ASCII 0x0e - 0x1f: UTF-8 0x20 - 0x7f: ASCII 0x80 - 0x9f: Windows-1252 0xa0 - 0xbf: ISO-8859-15 0xc0 - 0xfd: UTF-8 0xfe - 0xff: ISO-8859-15
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 Warning: Wrong parameter count for mb_detect_encoding() in /in/9MHpt on line 9 0xff - 0xff: