3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "google.at;davetrudes.com asdf http://www.youtube.com/user/davetrudes http://code.google.com/u/dave.trudes/"; $match = null; preg_match_all('\b((https?|ftp|file)://|(www|ftp)\.)[-A-Z0-9+&@#/%?=~_|$!:,.;]*[A-Z0-9+&@#/%=~_|$]', $string, $match); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vc7PO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'google.at%3Bdavetrudes.com%0Aasdf%0Ahttp%3A%2F%2Fwww.youtube.com%2Fuser%2Fdavetrudes%0Ahttp%3A%2F%2Fcode.google.com%2Fu%2Fdave.trudes%2F'
    7     1        ASSIGN                                                   !1, null
    8     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%5Cb%28%28https%3F%7Cftp%7Cfile%29%3A%2F%2F%7C%28www%7Cftp%29%5C.%29%5B-A-Z0-9%2B%26%40%23%2F%25%3F%3D%7E_%7C%24%21%3A%2C.%3B%5D%2A%5BA-Z0-9%2B%26%40%23%2F%25%3D%7E_%7C%24%5D'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.99 ms | 1394 KiB | 17 Q