3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* Set internal character encoding to UTF-8 */ mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); mb_http_input('UTF-8'); mb_language('uni'); mb_regex_encoding('UTF-8'); $chars = '안녕하세요ABCDEFGHIJKLMNOPQRSTUVWXYZ안녕하세요'; $len = strlen($chars); for ($i = 0; $i < $len; $i++) { echo mb_substr($chars,$i,1).'|'; }
Output for 4.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
안|녕|하|세|요|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|안|녕|하|세|요|||||||||||||||||||||
Output for 4.3.2 - 4.3.3
Fatal error: Call to undefined function: mb_regex_encoding() in /in/0F9Ag on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_regex_encoding() in /in/0F9Ag on line 8