3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mb_regex_encoding('UTF-8'); mb_internal_encoding("UTF-8"); $s="ó12345678\r\n1234\n;"; //$s=utf8_encode("ó12345678\r\n1234\n;") // "ó12345678rn1234n;" // 012345678901234567890 print_r(mb_detect_encoding($s)."\n"); print_r(mb_strlen($s)."\n"); print_r(mb_strpos($s,';')."\n");
Output for 4.3.4 - 7.1.0
UTF-8 17 16
Output for 4.3.2 - 4.3.3
Fatal error: Call to undefined function: mb_regex_encoding() in /in/OPFBE on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_regex_encoding() in /in/OPFBE on line 2