3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!preg_match('#((\d+)\s+year(s)?(,\s+)?)?((\d+)\s+week(s)?(,\s+)?)?((\d+)\s+day(s)?(,\s+)?)?((\d+)\s+hour(s)?(,\s+)?)?((\d+)\s+minute(s)?(,\s+)?)?((\d+)\s+second(s)?)?#', '21 minutes, 34 seconds', $match)) { var_dump($match); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/i2Q0E
function name:  (null)
number of ops:  11
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%23%28%28%5Cd%2B%29%5Cs%2Byear%28s%29%3F%28%2C%5Cs%2B%29%3F%29%3F%28%28%5Cd%2B%29%5Cs%2Bweek%28s%29%3F%28%2C%5Cs%2B%29%3F%29%3F%28%28%5Cd%2B%29%5Cs%2Bday%28s%29%3F%28%2C%5Cs%2B%29%3F%29%3F%28%28%5Cd%2B%29%5Cs%2Bhour%28s%29%3F%28%2C%5Cs%2B%29%3F%29%3F%28%28%5Cd%2B%29%5Cs%2Bminute%28s%29%3F%28%2C%5Cs%2B%29%3F%29%3F%28%28%5Cd%2B%29%5Cs%2Bsecond%28s%29%3F%29%3F%23'
          2        SEND_VAL                                                 '21+minutes%2C+34+seconds'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $1      
          5        BOOL_NOT                                         ~2      $1
          6      > JMPZ                                                     ~2, ->10
    4     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    5    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.48 ms | 1394 KiB | 17 Q