3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT Dr. Di MacKusa is a doctor. Do you know her?!? She live on 1 Doctor Dr. Doctorsville in the U.S.A. Mr. MacKusa married Dr. Di. TEXT; var_export( preg_split( '~(?:Ms|Dr|Mrs?|Prof)\.(*SKIP)(*FAIL)|[?!.]+\K\s+~', $text, 0, PREG_SPLIT_NO_EMPTY ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MIYDl
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, 'Dr.+Di+MacKusa+is+a+doctor.++Do+you+know+her%3F%21%3F++She+live+on+1+Doctor+Dr.+Doctorsville+in+the+U.S.A.+Mr.+MacKusa+married+Dr.+Di.+'
    7     1        INIT_FCALL                                               'var_export'
    8     2        INIT_FCALL                                               'preg_split'
    9     3        SEND_VAL                                                 '%7E%28%3F%3AMs%7CDr%7CMrs%3F%7CProf%29%5C.%28%2ASKIP%29%28%2AFAIL%29%7C%5B%3F%21.%5D%2B%5CK%5Cs%2B%7E'
   10     4        SEND_VAR                                                 !0
   11     5        SEND_VAL                                                 0
   12     6        SEND_VAL                                                 1
    8     7        DO_ICALL                                         $2      
   12     8        SEND_VAR                                                 $2
    7     9        DO_ICALL                                                 
   14    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.05 ms | 997 KiB | 15 Q