3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match_me = "hello world!"; $pattern = '/[a-z].*\s?\!$/'; $preg_match($pattern, $match_me,$matches); print_r($matches);

preferences:
40.89 ms | 402 KiB | 5 Q