3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php # URL that generated this code: # http://txt2re.com/index-php.php3?s=directv%20-%20some%20stuff%20hereHR34NC-5001nc&26&28&54&55&-62&56&51&52 $txt='directv - some stuff here 7H34-200nc'; $re='.*?([a-z]?[a-z]\\d\\d).*?((-\\d\\d\\d)?)'; if ($c=preg_match_all ("/".$re."/is", $txt, $matches)) { $w1=$matches[1][0]; $w2=$matches[2][0]; print "$w1$w2\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/0lP56
function name:  (null)
number of ops:  22
compiled vars:  !0 = $txt, !1 = $re, !2 = $c, !3 = $matches, !4 = $w1, !5 = $w2
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   ASSIGN                                                   !0, 'directv+-+some+stuff+here+7H34-200nc'
   7     1        ASSIGN                                                   !1, '.%2A%3F%28%5Ba-z%5D%3F%5Ba-z%5D%5Cd%5Cd%29.%2A%3F%28%28-%5Cd%5Cd%5Cd%29%3F%29'
   9     2        INIT_FCALL                                               'preg_match_all'
         3        CONCAT                                           ~8      '%2F', !1
         4        CONCAT                                           ~9      ~8, '%2Fis'
         5        SEND_VAL                                                 ~9
         6        SEND_VAR                                                 !0
         7        SEND_REF                                                 !3
         8        DO_ICALL                                         $10     
         9        ASSIGN                                           $11     !2, $10
        10      > JMPZ                                                     $11, ->21
  11    11    >   FETCH_DIM_R                                      $12     !3, 1
        12        FETCH_DIM_R                                      $13     $12, 0
        13        ASSIGN                                                   !4, $13
  12    14        FETCH_DIM_R                                      $15     !3, 2
        15        FETCH_DIM_R                                      $16     $15, 0
        16        ASSIGN                                                   !5, $16
  13    17        ROPE_INIT                                     3  ~19     !4
        18        ROPE_ADD                                      1  ~19     ~19, !5
        19        ROPE_END                                      2  ~18     ~19, '%0A'
        20        ECHO                                                     ~18
  14    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0