3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = 'This www.google.com is the http://www.facebook.com website that https://www.amazon.com make me awesome'; $pattern = '@((https?://)?([-\\w]+\\.[-\\w\\.]+)+\\w(:\\d+)?(/([-\\w/_\\.]*(\\?\\S+)?)?)*)@'; preg_match_all($pattern, $string, $matchFound); echo '<pre>'; print_r($matchFound[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QaGVl
function name:  (null)
number of ops:  13
compiled vars:  !0 = $sentence, !1 = $pattern, !2 = $string, !3 = $matchFound
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'This+www.google.com+is+the+http%3A%2F%2Fwww.facebook.com+website+that+https%3A%2F%2Fwww.amazon.com+make+me+awesome'
    4     1        ASSIGN                                                   !1, '%40%28%28https%3F%3A%2F%2F%29%3F%28%5B-%5Cw%5D%2B%5C.%5B-%5Cw%5C.%5D%2B%29%2B%5Cw%28%3A%5Cd%2B%29%3F%28%2F%28%5B-%5Cw%2F_%5C.%5D%2A%28%5C%3F%5CS%2B%29%3F%29%3F%29%2A%29%40'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !2
          5        SEND_REF                                                 !3
          6        DO_ICALL                                                 
    8     7        ECHO                                                     '%3Cpre%3E'
    9     8        INIT_FCALL                                               'print_r'
          9        FETCH_DIM_R                                      ~7      !3, 0
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.11 ms | 1394 KiB | 17 Q