3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str_utf8 = 'qqРусскийqqтекст12'; $login = $str_utf8;//iconv('UTF-8', 'Windows-1251', $str_utf8); $password = $str_utf8; //iconv('UTF-8', 'Windows-1251', $str_utf8); if (((preg_match('#.#u', $login))||(preg_match('#.#u', $password)) { $login = iconv('UTF-8', 'CP1251', $login); $password = iconv('UTF-8', 'CP1251', $password); } var_dump($login); var_dump($password); ?>
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '{' in /in/NIYBo on line 6
Process exited with code 255.