3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = '00:08:10.38474'; if (preg_match('/^(\d{2}):(\d{2}):(\d{2})\.(\d{5})$/', $t1, $matches)) { [, $hours, $minutes, $seconds, $milliseconds] = $matches; var_dump($hours, $minutes, $seconds, $milliseconds); // "00", "08", "10", "38474" }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 23
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/1MUed
function name:  (null)
number of ops:  24
compiled vars:  !0 = $t1, !1 = $matches, !2 = $hours, !3 = $minutes, !4 = $seconds, !5 = $milliseconds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '00%3A08%3A10.38474'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28%5Cd%7B2%7D%29%3A%28%5Cd%7B2%7D%29%3A%28%5Cd%7B2%7D%29%5C.%28%5Cd%7B5%7D%29%24%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $7      
          6      > JMPZ                                                     $7, ->23
    6     7    >   QM_ASSIGN                                        ~8      !1
          8        FETCH_LIST_R                                     $9      ~8, 1
          9        ASSIGN                                                   !2, $9
         10        FETCH_LIST_R                                     $11     ~8, 2
         11        ASSIGN                                                   !3, $11
         12        FETCH_LIST_R                                     $13     ~8, 3
         13        ASSIGN                                                   !4, $13
         14        FETCH_LIST_R                                     $15     ~8, 4
         15        ASSIGN                                                   !5, $15
         16        FREE                                                     ~8
    7    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        SEND_VAR                                                 !3
         20        SEND_VAR                                                 !4
         21        SEND_VAR                                                 !5
         22        DO_ICALL                                                 
    8    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.42 ms | 990 KiB | 15 Q