3v4l.org

run code in 300+ PHP versions simultaneously
<?php $syntax='/^\s(.*?)$/'; preg_match($syntax, 'abc', $matches); var_dump($matches);

preferences:
52.6 ms | 402 KiB | 5 Q