3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string ='öl??lö aßßhda äödasdas'; var_dump($without = preg_split('/\s+/', $string)); var_dump($with = preg_split('/\s+/u', $string)); var_dump($with == $without);
based on oXHoG
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> string(8) "öl??lö" [1]=> string(8) "aßßhda" [2]=> string(10) "äödasdas" } array(3) { [0]=> string(8) "öl??lö" [1]=> string(8) "aßßhda" [2]=> string(10) "äödasdas" } bool(true)