3v4l.org

run code in 300+ PHP versions simultaneously
<?php $moreOrig = "https://duckduckgo.com is better than https://google.com"; $testUrl = "@((https?|ftps?)://([\w\-.]+\.[a-zA-Z]{2,3})(/\S*)?)@"; echo preg_replace($testUrl, "<a href='$1'>$3</a>", $moreOrig);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RVfSm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $moreOrig, !1 = $testUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fduckduckgo.com+is+better+than+https%3A%2F%2Fgoogle.com'
    3     1        ASSIGN                                                   !1, '%40%28%28https%3F%7Cftps%3F%29%3A%2F%2F%28%5B%5Cw%5C-.%5D%2B%5C.%5Ba-zA-Z%5D%7B2%2C3%7D%29%28%2F%5CS%2A%29%3F%29%40'
    5     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '%3Ca+href%3D%27%241%27%3E%243%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:
148.19 ms | 1009 KiB | 14 Q