3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $regexEncoding = "CP-1251"; var_dump(mb_internal_encoding($regexEncoding)); exit(); var_dump(mb_regex_encoding($regexEncoding));
Output for 4.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(true)
Output for 4.3.2 - 4.3.3
Warning: mb_internal_encoding(): Unknown encoding "CP-1251" in /in/XdNgQ on line 4 bool(false)
Output for 4.3.0 - 4.3.1
Warning: mb_internal_encoding() [http://www.php.net/function.mb-internal-encoding]: Unknown encoding "CP-1251" in /in/XdNgQ on line 4 bool(false)