3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=array("apple","5","7"); preg_match("/(\w+)?/", "",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "",$matches); print_r($matches);

preferences:
62.1 ms | 402 KiB | 5 Q