3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT 1. The best foods for your cat's diet 2. How to ensure your cat is getting enough nutrients 3. The importance of a balanced diet for cats 4. How to make sure your cat is getting enough water 5. Tips for dealing with finicky eaters 6. How to tell if your cat is overweight 7. The dangers of overfeeding your cat5 TEXT; var_export( preg_split( '/\R*\d+\. /', $text, 0, PREG_SPLIT_NO_EMPTY ) );

preferences:
25.88 ms | 405 KiB | 5 Q