3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match("/(user1)(user2)[user3][user4][user5]/", "user1user2user3user4user5", $matches); echo "<pre>"; print_r($matches); echo "</pre>";
Output for 4.3.0 - 7.2.0
<pre>Array ( [0] => user1user2use [1] => user1 [2] => user2 ) </pre>