3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/', $str, $link); if (empty($link[0])) { echo "Nothing found!"; } else { echo $link[0]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OjvvB
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%28http%7Chttps%7Cftp%7Cftps%29%5C%3A%5C%2F%5C%2F%5Ba-zA-Z0-9%5C-%5C.%5D%2B%5C.%5Ba-zA-Z%5D%7B2%2C3%7D%28%5C%2F%5CS%2A%29%3F%2F'
          2        SEND_VAR                                                 !0
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    3     5        ISSET_ISEMPTY_DIM_OBJ                         1          !1, 0
          6      > JMPZ                                                     ~3, ->9
    4     7    >   ECHO                                                     'Nothing+found%21'
          8      > JMP                                                      ->11
    6     9    >   FETCH_DIM_R                                      ~4      !1, 0
         10        ECHO                                                     ~4
    7    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.18 ms | 1394 KiB | 15 Q