3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(^|[\n\s\>\\";]+)([^ \,"\t\n\r<>;]+\.[^ \,\"\t\n\r<]+)/iu'; $text = 'This is a normal text. http://vg.no, VG'; preg_match_all($regex, $text, $matches); print_r($matches); $text = 'This is normal text. http://vg.no, VG'; preg_match_all($regex, $text, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Em35
function name:  (null)
number of ops:  20
compiled vars:  !0 = $regex, !1 = $text, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%28%5E%7C%5B%5Cn%5Cs%5C%3E%5C%22%3B%5D%2B%29%28%5B%5E+%5C%2C%22%5Ct%5Cn%5Cr%3C%3E%3B%5D%2B%5C.%5B%5E+%5C%2C%5C%22%5Ct%5Cn%5Cr%3C%5D%2B%29%2Fiu'
    5     1        ASSIGN                                                   !1, 'This+is+a+normal+text.+http%3A%2F%2Fvg.no%2C+VG'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
    9    10        ASSIGN                                                   !1, 'This+is+normal+text.+http%3A%2F%2Fvg.no%2C+VG'
   10    11        INIT_FCALL                                               'preg_match_all'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        SEND_REF                                                 !2
         15        DO_ICALL                                                 
   11    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.29 ms | 1395 KiB | 17 Q