3v4l.org

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