3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match("/(\w+)?/", "asdadads-asdadad",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "",$matches); print_r($matches);
based on EEoJZ
Output for 5.6.0 - 7.3.0alpha1
Array ( [0] => asdadads [1] => asdadads ) Array ( [0] => [1] => )