3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '~<a\s*(.*)\>(.*)</a>~'; $subject = '<a href="#">hello</a> <abbr href="#">FYI</abbr> <a title="goodbye">later</a>'; preg_match_all($pattern, $subject, $matches); print_r($matches[2]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qMd7v
function name:  (null)
number of ops:  12
compiled vars:  !0 = $pattern, !1 = $subject, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7E%3Ca%5Cs%2A%28.%2A%29%5C%3E%28.%2A%29%3C%2Fa%3E%7E'
    3     1        ASSIGN                                                   !1, '%3Ca+href%3D%22%23%22%3Ehello%3C%2Fa%3E+%3Cabbr+href%3D%22%23%22%3EFYI%3C%2Fabbr%3E+%3Ca+title%3D%22goodbye%22%3Elater%3C%2Fa%3E'
    4     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~6      !2, 2
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.08 ms | 1394 KiB | 17 Q