3v4l.org

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

preferences:
40.87 ms | 402 KiB | 5 Q