3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "Hello,hello2 world"; $pattern = '/ |,|\)|\(|\;|\./'; preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER); print_r($matches);

preferences:
35.12 ms | 402 KiB | 5 Q