3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = <<<TAG <p> #mango #orange Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> TAG; $sentence = preg_replace("/(#([\w\-.]*)+ )+/", "<a href='#'>Link</a> ", $sentence); echo $sentence;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qKEAq
function name:  (null)
number of ops:  9
compiled vars:  !0 = $sentence
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3E%0A%23mango+%23orange+Lorem+ipsum+dolor+sit+amet%2C+consectetur+adipiscing+elit%2C+sed+do+eiusmod+tempor+incididunt+ut+labore+et+dolore+magna+aliqua.%0A%3C%2Fp%3E'
    9     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%23%28%5B%5Cw%5C-.%5D%2A%29%2B+%29%2B%2F'
          3        SEND_VAL                                                 '%3Ca+href%3D%27%23%27%3ELink%3C%2Fa%3E+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   11     7        ECHO                                                     !0
   12     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.39 ms | 1008 KiB | 14 Q