3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello @1a1a-1a1a and @2B2B2-B2 too'; preg_match_all("/(?<=@)[\w-]+/", $string, $matches); print_r($matches[0]);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
191.34 ms | 2227 KiB | 10 Q