3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello, my name is http://www.audio.com/1234.mp3/. Today is https://radio.org/weather.wav"; var_export( preg_split( '#\s*(https?://\S+(?<![,.]))\s*#', $string, flags: PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fi1nk
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello%2C+my+name+is+http%3A%2F%2Fwww.audio.com%2F1234.mp3%2F.+Today+is+https%3A%2F%2Fradio.org%2Fweather.wav'
    4     1        INIT_FCALL                                               'var_export'
    5     2        INIT_FCALL                                               'preg_split'
    6     3        SEND_VAL                                                 '%23%5Cs%2A%28https%3F%3A%2F%2F%5CS%2B%28%3F%3C%21%5B%2C.%5D%29%29%5Cs%2A%23'
    7     4        SEND_VAR                                                 !0
    8     5        SEND_VAL                                                 3
          6        CHECK_UNDEF_ARGS                                         
    5     7        DO_ICALL                                         $2      
    8     8        SEND_VAR                                                 $2
    4     9        DO_ICALL                                                 
   10    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.74 ms | 1001 KiB | 15 Q