3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = '[user:2] [user:3]'; preg_match_all("/\[user:(.*?)]/", $body, $matches); print_r($matches); exit;

preferences:
37.97 ms | 402 KiB | 5 Q