3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "Tapez ici le message https://www.gmail.com que vous souhaitez envoyer à vos clients http://goo.gl/aBcm test gg"; $links = array(); preg_replace('#[-a-zA-Z0-9@:%_\\+.~\\#?&//=]{2,256}\\.[a-z]{2,4}\\b(\\/[-a-zA-Z0-9@:%_\\+.~\\#?&//=]*)?#si', $content, $links); var_dump($links);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IqLEV
function name:  (null)
number of ops:  11
compiled vars:  !0 = $content, !1 = $links
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Tapez+ici+le+message+https%3A%2F%2Fwww.gmail.com+que+vous+souhaitez+envoyer+%C3%A0+vos+clients+http%3A%2F%2Fgoo.gl%2FaBcm+test+gg'
    5     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%23%5B-a-zA-Z0-9%40%3A%25_%5C%2B.%7E%5C%23%3F%26%2F%2F%3D%5D%7B2%2C256%7D%5C.%5Ba-z%5D%7B2%2C4%7D%5Cb%28%5C%2F%5B-a-zA-Z0-9%40%3A%25_%5C%2B.%7E%5C%23%3F%26%2F%2F%3D%5D%2A%29%3F%23si'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    8     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:
168.77 ms | 1394 KiB | 17 Q