3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match( '/ \\b # word boundary href # "href" attribute \\s* # optional whitespace = # literal "=" \\s* # optional whitespace (["\']) # open quote (captured for later backreference) ([^"\']+) \\1 # the same quote character as the opening quote /x', 'href=\'/\'', $matches ); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1IpbM
function name:  (null)
number of ops:  9
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
    4     1        SEND_VAL                                                 '%2F%0A++++++++%5Cb+++++%23+word+boundary%0A++++++++href++++%23+%22href%22+attribute%0A++++++++%5Cs%2A++++%23+optional+whitespace%0A++++++++%3D+++++++%23+literal+%22%3D%22%0A++++++++%5Cs%2A++++%23+optional+whitespace%0A++++++++%28%5B%22%27%5D%29+%23+open+quote+%28captured+for+later+backreference%29%0A++++++++%28%5B%5E%22%27%5D%2B%29%0A++++++++%5C1+++++%23+the+same+quote+character+as+the+opening+quote%0A++++%2Fx'
   14     2        SEND_VAL                                                 'href%3D%27%2F%27'
   15     3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
   18     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.53 ms | 1394 KiB | 17 Q