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 ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VP7Of
function name:  (null)
number of ops:  11
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1.+The+best+foods+for+your+cat%27s+diet%0A2.+How+to+ensure+your+cat+is+getting+enough+nutrients%0A3.+The+importance+of+a+balanced+diet+for+cats%0A4.+How+to+make+sure+your+cat+is+getting+enough+water%0A5.+Tips+for+dealing+with+finicky+eaters%0A6.+How+to+tell+if+your+cat+is+overweight%0A7.+The+dangers+of+overfeeding+your+cat5'
   13     1        INIT_FCALL                                               'var_export'
   14     2        INIT_FCALL                                               'preg_split'
   15     3        SEND_VAL                                                 '%2F%5CR%2A%5Cd%2B%5C.+%2F'
   16     4        SEND_VAR                                                 !0
   17     5        SEND_VAL                                                 0
   18     6        SEND_VAL                                                 1
   14     7        DO_ICALL                                         $2      
   18     8        SEND_VAR                                                 $2
   13     9        DO_ICALL                                                 
   20    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.3 ms | 1005 KiB | 15 Q