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); $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 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/CsGcc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $3      !0, ->12
          2    > > FE_FETCH_R                                               $3, !1, ->12
    6     3    >   CONCAT                                           ~4      !1, '%3A+'
          4        ECHO                                                     ~4
    7     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%5E%5Ba-z0-9%5D%2B%28%5Ba-z0-9-%5D%2B%5Ba-z0-9%5D%29%3F%24%2FiD'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        ECHO                                                     $5
    8    10        ECHO                                                     '%0A'
    5    11      > JMP                                                      ->2
         12    >   FE_FREE                                                  $3
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.05 ms | 1394 KiB | 15 Q