3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $splitRexEx = '/(.|\b){35}/'; $streetPart = ' verdammt lange stra├če und hausnummer, rue de trallala quatre-vingt-dix-neuf'; var_dump(preg_split($splitRexEx, $streetPart));
based on IYGmS
Output for 5.3.22 - 7.3.0beta1
array(5) { [0]=> string(0) "" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(0) "" [4]=> string(0) "" }