3v4l.org

run code in 300+ PHP versions simultaneously
<?php function make_clickable($text) { return preg_replace('@(?<![.*">])\b(?:(?:https?|ftp|file)://|[a-z]\.)[-A-Z0-9+&#/%=~_|$?!:,.]*[A-Z0-9+&#/%=~_|$]@i', '<a href="\0">\0</a>', $text); } $text="PHP-Infos finden sich auf http://www.php.net und zu preg_replace()auf http://www.php.net/manual/de/function.preg-replace.php"; //echo $text; //echo "<br>"; echo autolink($text); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ni41G
function name:  (null)
number of ops:  6
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'PHP-Infos+finden+sich+auf+http%3A%2F%2Fwww.php.net+und+zu+preg_replace%28%29auf+http%3A%2F%2Fwww.php.net%2Fmanual%2Fde%2Ffunction.preg-replace.php'
   11     1        INIT_FCALL_BY_NAME                                       'autolink'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
   14     5      > RETURN                                                   1

Function make_clickable:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ni41G
function name:  make_clickable
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%40%28%3F%3C%21%5B.%2A%22%3E%5D%29%5Cb%28%3F%3A%28%3F%3Ahttps%3F%7Cftp%7Cfile%29%3A%2F%2F%7C%5Ba-z%5D%5C.%29%5B-A-Z0-9%2B%26%23%2F%25%3D%7E_%7C%24%3F%21%3A%2C.%5D%2A%5BA-Z0-9%2B%26%23%2F%25%3D%7E_%7C%24%5D%40i'
          3        SEND_VAL                                                 '%3Ca+href%3D%22%5C0%22%3E%5C0%3C%2Fa%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    5     7*     > RETURN                                                   null

End of function make_clickable

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.82 ms | 1395 KiB | 15 Q