3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'string#example[is-like="html"].selectors'; preg_match_all("/\w+|\W+/", $str, $match); print_r($match);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => string [1] => # [2] => example [3] => [ [4] => is [5] => - [6] => like [7] => =" [8] => html [9] => "]. [10] => selectors ) )