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'); ob_start('mb_output_handler'); $chars = '안녕하세요ABCDEFGHIJKLMNOPQRSTUVWXYZ안녕하세요'; $len = strlen($chars); for ($i = 0; $i < $len; $i++) { echo substr($chars,$i,1).'|'; }
Output for 5.4.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.4 - 5.3.29
|||||||||||||||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/bf9io 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/bf9io on line 8