3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('~[\\\\a-z0-9_]~', 'a\\\\b', $matches); print_r($matches); preg_match_all('~[a-z0-9_\\\\]~', 'a\\\\b', $matches); print_r($matches); preg_match_all('~[\\d-z]~', 'a\\\\b', $matches); print_r($matches); preg_match_all('~[\\\\d-z]~', 'a\\\\b', $matches); print_r($matches);

preferences:
62.74 ms | 402 KiB | 5 Q