3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "a. Hello my name is xxx. b. Hello is my name yyy? c. Hello my name is rrr! d. Hello my name is aaa"; $res = preg_split("/\n[a-z].\s/", "\n" . $str); array_shift($res); print_r($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/miP1K
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a.+Hello+my+name+is+xxx.%0Ab.+Hello+is+my+name+yyy%3F%0Ac.+Hello+my+name+is+rrr%21%0Ad.+Hello+my+name+is+aaa'
    7     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%0A%5Ba-z%5D.%5Cs%2F'
          3        CONCAT                                           ~3      '%0A', !0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    8     7        INIT_FCALL                                               'array_shift'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.85 ms | 1885 KiB | 14 Q