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.4.0 - 5.4.27
Parse error: syntax error, unexpected '||' (T_BOOLEAN_OR) in /in/7LXPi on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_BOOLEAN_OR in /in/7LXPi on line 5
Process exited with code 255.