3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Text = "There is an unique news in itlogic.com. I was read it when Mrs.leafa is cooking."; $array = preg_split("/\.(?=\s|$)/m", $Text); var_dump($array); if($array[count($array)-1] == ""){ unset($array[count($array)-1]); } var_dump($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/rCdM0
function name:  (null)
number of ops:  21
compiled vars:  !0 = $Text, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'There+is+an+unique+news+in+itlogic.com.+I+was+read+it+when+Mrs.leafa+is+cooking.'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5C.%28%3F%3D%5Cs%7C%24%29%2Fm'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    9     9        COUNT                                            ~6      !1
         10        SUB                                              ~7      ~6, 1
         11        FETCH_DIM_R                                      ~8      !1, ~7
         12        IS_EQUAL                                                 ~8, ''
         13      > JMPZ                                                     ~9, ->17
   10    14    >   COUNT                                            ~10     !1
         15        SUB                                              ~11     ~10, 1
         16        UNSET_DIM                                                !1, ~11
   13    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.06 ms | 1011 KiB | 15 Q