3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = []; $a = preg_match('/([H])(?P<word>ello)/', "Hello", $matches); var_dump($matches);

preferences:
24.6 ms | 405 KiB | 5 Q