3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lineContent = "<00:01:13.650><c> time</c><00:01:13.920><c> and</c> <00:01:14.780><c> that's</c><00:01:15.780><c> what</c>"; if (preg_match_all('~<(?<time>\d{2}:\d{2}:\d{2}\.\d+)><c>\s*(?<text>.*?)</c>~', $lineContent, $allintag)) { print_r($allintag["time"]); echo "\n"; print_r($allintag["text"]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/00WmD
function name:  (null)
number of ops:  17
compiled vars:  !0 = $lineContent, !1 = $allintag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C00%3A01%3A13.650%3E%3Cc%3E+time%3C%2Fc%3E%3C00%3A01%3A13.920%3E%3Cc%3E+and%3C%2Fc%3E+%0A+%3C00%3A01%3A14.780%3E%3Cc%3E+that%27s%3C%2Fc%3E%3C00%3A01%3A15.780%3E%3Cc%3E+what%3C%2Fc%3E'
    5     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7E%3C%28%3F%3Ctime%3E%5Cd%7B2%7D%3A%5Cd%7B2%7D%3A%5Cd%7B2%7D%5C.%5Cd%2B%29%3E%3Cc%3E%5Cs%2A%28%3F%3Ctext%3E.%2A%3F%29%3C%2Fc%3E%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->16
    6     7    >   INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~4      !1, 'time'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    7    11        ECHO                                                     '%0A'
    8    12        INIT_FCALL                                               'print_r'
         13        FETCH_DIM_R                                      ~6      !1, 'text'
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                                 
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.01 ms | 1005 KiB | 15 Q