3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $body = 'err [user:2] [user:3] rdfer'; preg_match_all("/\[user:(.*?)]/", $body, $matches); print_r($matches); exit;
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => [user:2] [1] => [user:3] ) [1] => Array ( [0] => 2 [1] => 3 ) )