3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match("/(\w+)?/", "ww",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "rr",$matches); print_r($matches);

preferences:
42.79 ms | 402 KiB | 5 Q