3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $types = ['auto', 'int', 'float', 'string', 'html', 'list', 'pattern']; // echo '('.implode('|', $types).')'; $str = 'auto(1;25)'; preg_match('/('.implode('|', $types).')\((.*?)\)/i', $str, $matches); var_dump($matches);
based on 8l7GI