3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<pre>Array ( [0] => user1user2user3user4user5 [1] => user1 [2] => user2 [3] => user3 [4] => user4 [5] => user5 ) </pre>