3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo mb_detect_encoding('áéóú', 'cp1251, UTF-8');
Output for 4.3.4 - 7.1.0
Windows-1251
Output for 4.3.2 - 4.3.3
Warning: mb_detect_encoding(): Illegal argument in /in/Q6ADN on line 2 UTF-8
Process exited with code 139.
Output for 4.3.0 - 4.3.1
Warning: mb_detect_encoding() [http://www.php.net/function.mb-detect-encoding]: Illegal argument in /in/Q6ADN on line 2 UTF-8
Process exited with code 139.