3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = "This is a #hashtag within some #awesometext."; $newText = preg_replace("/#(\w+)/", "<a href='category.php?tag=$1'>#$1</a>", $text); echo $newText;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d0gN5
function name:  (null)
number of ops:  6
compiled vars:  !0 = $text, !1 = $newText
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'This+is+a+%23hashtag+within+some+%23awesometext.'
    5     1        FRAMELESS_ICALL_3                preg_replace        ~3      '%2F%23%28%5Cw%2B%29%2F', '%3Ca+href%3D%27category.php%3Ftag%3D%241%27%3E%23%241%3C%2Fa%3E'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
    7     4        ECHO                                                         !1
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.57 ms | 2808 KiB | 13 Q