3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = '自此直至2010年n'; preg_match_all('/(\w+)/U', $str, $matches); print_r($matches[0]);
based on c0469
Output for 4.3.0 - 7.2.0
Array ( [0] => 2 [1] => 0 [2] => 1 [3] => 0 [4] => n )