3v4l.org

run code in 200+ php & hhvm versions
<?php var_dump(mb_ereg_replace('\B', '|', 'abc'));
Output for 5.6.0 - 7.2.6
string(6) "a||b|c"