3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mb_internal_encoding("UTF-8"); mb_regex_encoding("UTF-8"); print_r(mb_split(utf8_encode("\W+", "whatèver, .*fóo: bâr")));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: utf8_encode() expects exactly 1 parameter, 2 given in /in/4Vd2j on line 4 Warning: mb_split() expects at least 2 parameters, 1 given in /in/4Vd2j on line 4
Output for 4.3.4 - 5.2.17
Warning: Wrong parameter count for utf8_encode() in /in/4Vd2j on line 4 Warning: mb_split() expects at least 2 parameters, 1 given in /in/4Vd2j on line 4
Output for 4.3.2 - 4.3.3
Fatal error: Call to undefined function: mb_regex_encoding() in /in/4Vd2j on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_regex_encoding() in /in/4Vd2j on line 3