3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); $text = "soundfly.us schoollife.edu hello.net some random news.yahoo.com text http://tinyurl.com/9uxdwc some http://google.com random text http://tinyurl.com/787988 and others will en.wikipedia.org/wiki/Country_music URL"; preg_match_all('$\b(https?|ftp|file)://[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]$i', $text, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U0XCa
function name:  (null)
number of ops:  11
compiled vars:  !0 = $matches, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'soundfly.us+schoollife.edu+hello.net+some+random+news.yahoo.com+text+http%3A%2F%2Ftinyurl.com%2F9uxdwc+some+http%3A%2F%2Fgoogle.com+random+text+http%3A%2F%2Ftinyurl.com%2F787988+and+others+will+en.wikipedia.org%2Fwiki%2FCountry_music+URL'
    4     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%24%5Cb%28https%3F%7Cftp%7Cfile%29%3A%2F%2F%5B-A-Z0-9%2B%26%40%23%2F%25%3F%3D%7E_%7C%21%3A%2C.%3B%5D%2A%5B-A-Z0-9%2B%26%40%23%2F%25%3D%7E_%7C%5D%24i'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.32 ms | 1394 KiB | 17 Q