3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit
0x00 - 0x7f: ASCII 0x80 - 0x80: Windows-1252 0x81 - 0x81: ISO-8859-15 0x82 - 0x8c: Windows-1252 0x8d - 0x8d: ISO-8859-15 0x8e - 0x8e: Windows-1252 0x8f - 0x90: ISO-8859-15 0x91 - 0x9c: Windows-1252 0x9d - 0x9d: ISO-8859-15 0x9e - 0xff: Windows-1252
Output for rfc.property-hooks
0x00 - 0x7f: ASCII 0x80 - 0xff: Windows-1252

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