3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = "Locally meet daily newlywed for next 3 days"; // Use preg_match() function to check match preg_match_all('/\b(?!(?:daily|weekly|monthly))(\w+ly)\b/', $sentence, $matches, PREG_OFFSET_CAPTURE); // Display matches result print_r($matches);

preferences:
23.9 ms | 402 KiB | 5 Q