3v4l.org

run code in 500+ PHP versions simultaneously
<?php $t= "3 00:00:45,607 --> 00:00:49,202 <i>Good morning, it's GLR Breakfast on 94.9 FM...</i> 早上好,这里是调频94.9 GLR早餐电台 4 00:00:54,727 --> 00:00:56,319 Wha...?! 什么? 5 00:01:03,527 --> 00:01:05,722 Oh, no! 噢, 不 6 00:01:16,207 --> 00:01:20,564 <i>Don't go back to sleep, you lazy sowI It's 8 o'clockI</i> 你敢睡回笼觉,已经八点了你个懒鬼 已经八点了你个懒鬼 已经八点了你个懒鬼 已经八点了你个懒鬼 7 00:01:20,727 --> 00:01:24,766 <i>You've got three seconds before the saucepan lidsI</i> 在锅铲乐前你还有三秒 在锅铲乐前你还有三秒 8 00:01:28,447 --> 00:01:31,644 Oh, yes! All right! 好吧,好吧"; $arr =explode(PHP_EOL.PHP_EOL, $t); Foreach($arr as &$group){ $lines = explode(PHP_EOL, $group); For($i=2;$i<count($lines);$i++){ If(preg_match("/[a-zA-Z \.,?!]{3,}/", $lines[$i])){ unset($lines[$i]); } } $group = implode(PHP_EOL, $lines); } Echo implode(PHP_EOL.PHP_EOL, $arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 26
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 15
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 15
Branch analysis from position: 23
Branch analysis from position: 15
Branch analysis from position: 19
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/5bk7I
function name:  (null)
number of ops:  30
compiled vars:  !0 = $t, !1 = $arr, !2 = $group, !3 = $lines, !4 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '3%0A00%3A00%3A45%2C607+--%3E+00%3A00%3A49%2C202%0A%3Ci%3EGood+morning%2C%0Ait%27s+GLR+Breakfast+on+94.9+FM...%3C%2Fi%3E%0A%E6%97%A9%E4%B8%8A%E5%A5%BD%EF%BC%8C%E8%BF%99%E9%87%8C%E6%98%AF%E8%B0%83%E9%A2%9194.9+GLR%E6%97%A9%E9%A4%90%E7%94%B5%E5%8F%B0%0A%0A4%0A00%3A00%3A54%2C727+--%3E+00%3A00%3A56%2C319%0AWha...%3F%21%0A%E4%BB%80%E4%B9%88%EF%BC%9F%0A%0A5%0A00%3A01%3A03%2C527+--%3E+00%3A01%3A05%2C722%0AOh%2C+no%21%0A%E5%99%A2%EF%BC%8C+%E4%B8%8D%0A%0A6%0A00%3A01%3A16%2C207+--%3E+00%3A01%3A20%2C564%0A%3Ci%3EDon%27t+go+back+to+sleep%2C%0Ayou+lazy+sowI+It%27s+8+o%27clockI%3C%2Fi%3E%0A%E4%BD%A0%E6%95%A2%E7%9D%A1%E5%9B%9E%E7%AC%BC%E8%A7%89%EF%BC%8C%E5%B7%B2%E7%BB%8F%E5%85%AB%E7%82%B9%E4%BA%86%E4%BD%A0%E4%B8%AA%E6%87%92%E9%AC%BC%0A%E5%B7%B2%E7%BB%8F%E5%85%AB%E7%82%B9%E4%BA%86%E4%BD%A0%E4%B8%AA%E6%87%92%E9%AC%BC%0A%E5%B7%B2%E7%BB%8F%E5%85%AB%E7%82%B9%E4%BA%86%E4%BD%A0%E4%B8%AA%E6%87%92%E9%AC%BC%0A%E5%B7%B2%E7%BB%8F%E5%85%AB%E7%82%B9%E4%BA%86%E4%BD%A0%E4%B8%AA%E6%87%92%E9%AC%BC%0A%0A7%0A00%3A01%3A20%2C727+--%3E+00%3A01%3A24%2C766%0A%3Ci%3EYou%27ve+got+three+seconds%0Abefore+the+saucepan+lidsI%3C%2Fi%3E%0A%E5%9C%A8%E9%94%85%E9%93%B2%E4%B9%90%E5%89%8D%E4%BD%A0%E8%BF%98%E6%9C%89%E4%B8%89%E7%A7%92%0A%E5%9C%A8%E9%94%85%E9%93%B2%E4%B9%90%E5%89%8D%E4%BD%A0%E8%BF%98%E6%9C%89%E4%B8%89%E7%A7%92%0A%0A8%0A00%3A01%3A28%2C447+--%3E+00%3A01%3A31%2C644%0AOh%2C+yes%21+All+right%21%0A%E5%A5%BD%E5%90%A7%EF%BC%8C%E5%A5%BD%E5%90%A7'
   41     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%0A%0A'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $6      
          5        ASSIGN                                                       !1, $6
   43     6      > FE_RESET_RW                                          $8      !1, ->26
          7    > > FE_FETCH_RW                                                  $8, !2, ->26
   44     8    >   INIT_FCALL                                                   'explode'
          9        SEND_VAL                                                     '%0A'
         10        SEND_VAR                                                     !2
         11        DO_ICALL                                             $9      
         12        ASSIGN                                                       !3, $9
   45    13        ASSIGN                                                       !4, 2
         14      > JMP                                                          ->20
   46    15    >   FETCH_DIM_R                                          ~12     !3, !4
         16        FRAMELESS_ICALL_2                preg_match          ~13     '%2F%5Ba-zA-Z+%5C.%2C%3F%21%5D%7B3%2C%7D%2F', ~12
         17      > JMPZ                                                         ~13, ->19
   47    18    >   UNSET_DIM                                                    !3, !4
   45    19    >   PRE_INC                                                      !4
         20    >   COUNT                                                ~15     !3
         21        IS_SMALLER                                                   !4, ~15
         22      > JMPNZ                                                        ~16, ->15
   50    23    >   FRAMELESS_ICALL_2                implode             ~17     '%0A', !3
         24        ASSIGN                                                       !2, ~17
   43    25      > JMP                                                          ->7
         26    >   FE_FREE                                                      $8
   52    27        FRAMELESS_ICALL_2                implode             ~19     '%0A%0A', !1
         28        ECHO                                                         ~19
         29      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.45 ms | 2108 KiB | 18 Q