3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "1 00:05:50,141 --> 00:05:54,771 This is what was said1 2 00:05:50,141 --> 00:05:54,771 This is what was said2 Boensnglr Dldldlsls 3 00:05:50,141 --> 00:05:54,771 This is what was said3 4 00:05:50,141 --> 00:05:54,771 This is what was said4 LLLL 5 00:05:50,141 --> 00:05:54,771 This is what was said5"; $count = explode(PHP_EOL.PHP_EOL, $str); foreach($count as &$line){ $line = implode(PHP_EOL, array_slice(explode(PHP_EOL, $line), 2)); } echo implode(PHP_EOL.PHP_EOL, $count);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 22
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/r7hbO
function name:  (null)
number of ops:  29
compiled vars:  !0 = $str, !1 = $count, !2 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1%0A00%3A05%3A50%2C141+--%3E+00%3A05%3A54%2C771%0AThis+is+what+was+said1%0A%0A2%0A00%3A05%3A50%2C141+--%3E+00%3A05%3A54%2C771%0AThis+is+what+was+said2%0ABoensnglr%0ADldldlsls%0A%0A3%0A00%3A05%3A50%2C141+--%3E+00%3A05%3A54%2C771%0AThis+is+what+was+said3%0A%0A4%0A00%3A05%3A50%2C141+--%3E+00%3A05%3A54%2C771%0AThis+is+what+was+said4%0ALLLL%0A%0A5%0A00%3A05%3A50%2C141+--%3E+00%3A05%3A54%2C771%0AThis+is+what+was+said5'
   27     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   29     6      > FE_RESET_RW                                      $6      !1, ->22
          7    > > FE_FETCH_RW                                              $6, !2, ->22
   30     8    >   INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 '%0A'
         10        INIT_FCALL                                               'array_slice'
         11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '%0A'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        SEND_VAL                                                 2
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                         $9      
         20        ASSIGN                                                   !2, $9
   29    21      > JMP                                                      ->7
         22    >   FE_FREE                                                  $6
   33    23        INIT_FCALL                                               'implode'
         24        SEND_VAL                                                 '%0A%0A'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $11     
         27        ECHO                                                     $11
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.69 ms | 1401 KiB | 19 Q