3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '自此直至2010年n'; preg_match_all('/(\w+)/', $str, $matches); print_r($matches[0]);

preferences:
160.02 ms | 405 KiB | 5 Q