3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(string $str): void { if (preg_match('~a|(u(x))|(v(y))~', $str, $matches) === 1) { var_dump($matches); } } test("vy");

preferences:
24.87 ms | 405 KiB | 5 Q