3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'string#example[is-like="html"].selectors'; preg_match_all("/\w+|\W+/", $str, $match); print_r($match);

preferences:
35.75 ms | 402 KiB | 5 Q