3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text ="I found some really good articles on such and such topic. Here are a few links to check out: http://www.example.com/hOSDHOUA and https://www.mywebsite.com/h/yIFeelLowIfImHigh and http://example-site.com/today-is-a-beautiful-day/. "; $reg_exUrl = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; echo preg_replace($reg_exUrl, "<a href=$0>$0</a> ", $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cdgYJ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text, !1 = $reg_exUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'I+found+some+really+good+articles+on+such+and+such+topic.+Here+are+a+few+links+to+check+out%3A+http%3A%2F%2Fwww.example.com%2FhOSDHOUA+and+https%3A%2F%2Fwww.mywebsite.com%2Fh%2FyIFeelLowIfImHigh+and+http%3A%2F%2Fexample-site.com%2Ftoday-is-a-beautiful-day%2F.+'
    3     1        ASSIGN                                                   !1, '%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'
    4     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '%3Ca+href%3D%240%3E%240%3C%2Fa%3E+'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.83 ms | 1398 KiB | 15 Q