3v4l.org

run code in 300+ PHP versions simultaneously
<?php $author = 'Shevchuk T.I., Piskun R.P., Vasenko T.B.'; $str_arr1= explode(", ", $author); foreach($str_arr1 as $str_arr) { $initials= preg_split('/([A-Z]\.[A-Z]\.|[A-Z]\.\s+[A-Z]\.|[A-Z][a-z]\.)/', $str_arr, -1, PREG_SPLIT_NO_EMPTY); $surnames= preg_split('/\w{3,15}/', $str_arr, -1, PREG_SPLIT_NO_EMPTY); print_r($initials); print_r($surnames); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 29
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 29
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/1sgmX
function name:  (null)
number of ops:  31
compiled vars:  !0 = $author, !1 = $str_arr1, !2 = $str_arr, !3 = $initials, !4 = $surnames
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Shevchuk+T.I.%2C+Piskun+R.P.%2C+Vasenko+T.B.'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    4     6      > FE_RESET_R                                       $8      !1, ->29
          7    > > FE_FETCH_R                                               $8, !2, ->29
    5     8    >   INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '%2F%28%5BA-Z%5D%5C.%5BA-Z%5D%5C.%7C%5BA-Z%5D%5C.%5Cs%2B%5BA-Z%5D%5C.%7C%5BA-Z%5D%5Ba-z%5D%5C.%29%2F'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 -1
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
    6    15        INIT_FCALL                                               'preg_split'
         16        SEND_VAL                                                 '%2F%5Cw%7B3%2C15%7D%2F'
         17        SEND_VAR                                                 !2
         18        SEND_VAL                                                 -1
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !4, $11
    7    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
    8    25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                                 
    4    28      > JMP                                                      ->7
         29    >   FE_FREE                                                  $8
    9    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1013 KiB | 16 Q