3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<td valign="top" width="300"class="topborder"><ahref="/path/to/somewhere" class="bigger">random1</a><br/> <td valign="top" width="300"class="topborder"><ahref="/path/to/somewhere2" class="bigger">random2</a><br/>'; $pattern = '/width=\"300\"class=\"topborder\"><ahref=\"(.*?)"/'; print "<pre>"; if (preg_match_all($pattern, $str, $match)) print_r($match); else print "nope";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BgebB
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $pattern, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ctd+valign%3D%22top%22+width%3D%22300%22class%3D%22topborder%22%3E%3Cahref%3D%22%2Fpath%2Fto%2Fsomewhere%22+class%3D%22bigger%22%3Erandom1%3C%2Fa%3E%3Cbr%2F%3E%0A%3Ctd+valign%3D%22top%22+width%3D%22300%22class%3D%22topborder%22%3E%3Cahref%3D%22%2Fpath%2Fto%2Fsomewhere2%22+class%3D%22bigger%22%3Erandom2%3C%2Fa%3E%3Cbr%2F%3E'
    6     1        ASSIGN                                                   !1, '%2Fwidth%3D%5C%22300%5C%22class%3D%5C%22topborder%5C%22%3E%3Cahref%3D%5C%22%28.%2A%3F%29%22%2F'
    8     2        ECHO                                                     '%3Cpre%3E'
    9     3        INIT_FCALL                                               'preg_match_all'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->13
   10     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    9    12      > JMP                                                      ->14
   12    13    >   ECHO                                                     'nope'
         14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.92 ms | 1005 KiB | 15 Q