3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match('/^[\w\.]+$/', 'admin.general.canViewPrivateUserOptions', $matches); var_dump($matches); preg_match('/^[\w-\.]+$/', 'admin.general.canViewPrivateUserOptions', $matches); var_dump($matches); preg_match('/^[\\w-\\.]+$/', 'admin.general.canViewPrivateUserOptions', $matches); var_dump($matches);

preferences:
45.06 ms | 2048 KiB | 5 Q