3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('mbstring.internal_encoding', 'UTF-8'); mb_regex_encoding('UTF-8'); var_dump(preg_split('|\B|', "abc")); var_dump(mb_split('\B', "abc"));

preferences:
38.04 ms | 416 KiB | 6 Q