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 = $matches[0]; 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 = 12, Position 2 = 22
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 22
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/c7Fs0
function name:  (null)
number of ops:  24
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                                                 '%28DEHUMIDIFIER%29%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        FETCH_DIM_R                                      ~6      !0, 0
         10        ASSIGN                                                   !1, ~6
    6    11      > FE_RESET_R                                       $8      !1, ->22
         12    > > FE_FETCH_R                                               $8, !2, ->22
    7    13    >   CONCAT                                           ~9      !2, '%3A+'
         14        ECHO                                                     ~9
    8    15        INIT_FCALL                                               'preg_match'
         16        SEND_VAL                                                 '%2F%5E%5Ba-z0-9%5D%2B%28%5Ba-z0-9-%5D%2B%5Ba-z0-9%5D%29%3F%24%2FiD'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $10     
         19        ECHO                                                     $10
    9    20        ECHO                                                     '%0A'
    6    21      > JMP                                                      ->12
         22    >   FE_FREE                                                  $8
   10    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.82 ms | 1395 KiB | 19 Q