3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = '</p><p><a rel="nofollow" class="external text" href="http://10.20.0.30:1234/index.php/this_is_an_example.html">How_to_sample.</a>'; $pattern = '~(?:\G|\Qhttp://10.20.0.30:1234/index.php\E[^_]+)\K_([^_.]*)~'; echo preg_replace($pattern, " $1", $input);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BXEgW
function name:  (null)
number of ops:  6
compiled vars:  !0 = $input, !1 = $pattern
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%3C%2Fp%3E%3Cp%3E%3Ca+rel%3D%22nofollow%22+class%3D%22external+text%22+href%3D%22http%3A%2F%2F10.20.0.30%3A1234%2Findex.php%2Fthis_is_an_example.html%22%3EHow_to_sample.%3C%2Fa%3E'
    4     1        ASSIGN                                                       !1, '%7E%28%3F%3A%5CG%7C%5CQhttp%3A%2F%2F10.20.0.30%3A1234%2Findex.php%5CE%5B%5E_%5D%2B%29%5CK_%28%5B%5E_.%5D%2A%29%7E'
    6     2        FRAMELESS_ICALL_3                preg_replace        ~4      !1, '+%241'
          3        OP_DATA                                                      !0
          4        ECHO                                                         ~4
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
220.46 ms | 2307 KiB | 13 Q