3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all("/(\b[a-zA-Z-]{3,}\b)+?/", "DEHUMIDIFIER, MUNTERS (M11L) / / / / / / / M11L 230V, 50Hz, 0.21Kw", $matches); print_r($matches[0]); $foo = array('(DEHUMIDIFIER)', '(M11L)'); foreach ($foo as $bar) { print $bar . ': '; print preg_match('/^[a-z0-9]+([a-z0-9-]+[a-z0-9])?$/iD', $bar); print PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 21
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/XvWG0
function name:  (null)
number of ops:  23
compiled vars:  !0 = $matches, !1 = $foo, !2 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%2F%28%5Cb%5Ba-zA-Z-%5D%7B3%2C%7D%5Cb%29%2B%3F%2F'
          2        SEND_VAL                                                 'DEHUMIDIFIER%2C+MUNTERS+%28M11L%29+%2F+%2F+%2F+%2F+%2F+%2F+%2F+M11L+230V%2C+50Hz%2C+0.21Kw'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'print_r'
          6        FETCH_DIM_R                                      ~4      !0, 0
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    5     9        ASSIGN                                                   !1, <array>
    6    10      > FE_RESET_R                                       $7      !1, ->21
         11    > > FE_FETCH_R                                               $7, !2, ->21
    7    12    >   CONCAT                                           ~8      !2, '%3A+'
         13        ECHO                                                     ~8
    8    14        INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2F%5E%5Ba-z0-9%5D%2B%28%5Ba-z0-9-%5D%2B%5Ba-z0-9%5D%29%3F%24%2FiD'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $9      
         18        ECHO                                                     $9
    9    19        ECHO                                                     '%0A'
    6    20      > JMP                                                      ->11
         21    >   FE_FREE                                                  $7
   10    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.31 ms | 1395 KiB | 19 Q