3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(mb_internal_encoding()); var_dump(mb_strlen('é')); var_dump(mb_strlen('é', null)); var_dump(mb_strlen('é', false)); var_dump(mb_strlen('é', 0)); var_dump(mb_strlen('é', 'UTF-8'));
Output for 5.6.0 - 7.1.0
string(5) "UTF-8" int(1) Warning: mb_strlen(): Unknown encoding "" in /in/jvTbB on line 5 bool(false) Warning: mb_strlen(): Unknown encoding "" in /in/jvTbB on line 6 bool(false) Warning: mb_strlen(): Unknown encoding "0" in /in/jvTbB on line 7 bool(false) int(1)
Output for 4.3.3 - 5.5.38
string(10) "ISO-8859-1" int(2) Warning: mb_strlen(): Unknown encoding "" in /in/jvTbB on line 5 bool(false) Warning: mb_strlen(): Unknown encoding "" in /in/jvTbB on line 6 bool(false) Warning: mb_strlen(): Unknown encoding "0" in /in/jvTbB on line 7 bool(false) int(1)
Output for 4.3.2
string(4) "pass" int(2) Warning: mb_strlen(): Unknown encoding "" in /in/jvTbB on line 5 bool(false) Warning: mb_strlen(): Unknown encoding "" in /in/jvTbB on line 6 bool(false) Warning: mb_strlen(): Unknown encoding "0" in /in/jvTbB on line 7 bool(false) int(1)
Output for 4.3.0 - 4.3.1
string(4) "pass" int(2) Warning: mb_strlen() [http://www.php.net/function.mb-strlen]: Unknown encoding "" in /in/jvTbB on line 5 bool(false) Warning: mb_strlen() [http://www.php.net/function.mb-strlen]: Unknown encoding "" in /in/jvTbB on line 6 bool(false) Warning: mb_strlen() [http://www.php.net/function.mb-strlen]: Unknown encoding "0" in /in/jvTbB on line 7 bool(false) int(1)