3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'foobar: 2008'; preg_match('/(?P<name>\w+): (?P<zahl>\d+)/', $str, $treffer); print_r($treffer); ?>

preferences:
63.26 ms | 402 KiB | 5 Q