3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "This is a test"; preg_match('/(?P<name>.+?) (.+)/',$str,$arr); print_R($arr);

preferences:
40.58 ms | 402 KiB | 5 Q