3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match(['/\d/', '/a/'], 'add1', $match); print_r($match);

preferences:
43.59 ms | 402 KiB | 5 Q