3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Total%20M%C4%81ori%2C31.5%2C33.3%2C31.8%2C33%2C36.4%2C33.2%2C33.2'; $rawstr = rawurldecode($str); var_dump( mb_detect_encoding($rawstr, ['UTF-8', 'ISO-8859-1', 'WINDOWS-1251']), mb_detect_encoding($rawstr, ['ISO-8859-1', 'WINDOWS-1251', 'UTF-8']), mb_detect_encoding($rawstr, ['WINDOWS-1251', 'UTF-8', 'ISO-8859-1']), mb_check_encoding($rawstr, 'ISO-8859-1'), mb_check_encoding($rawstr, 'UTF-8'), mb_check_encoding($rawstr, 'WINDOWS-1251'), );
Output for git.master_jit, git.master
string(5) "UTF-8" string(12) "Windows-1251" string(12) "Windows-1251" bool(true) bool(true) bool(true)
Output for rfc.property-hooks
string(12) "Windows-1251" string(12) "Windows-1251" string(12) "Windows-1251" bool(true) bool(true) bool(true)

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:
105.18 ms | 406 KiB | 5 Q