3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'qwe <a href="/asd/ghj/wer.html">123</a>, qwe <a href="http://www.arrivo.ru/asdwer.html">123</a>, qwe <a href="//arrivo.ru/w/sd/ger.html">123</a>, qwe <a href="http://yandex.ru/index.html">123</a>, qwe <a href="/smth/else">123</a>, http://www.arrivo.ru/nooo.html :)'; $text = preg_replace('#<a (.+)((http:|https:)?//(www\.)?arrivo\.ru|/[^/])/(.+)\.html(.+)>#isU', '<a $1$2/$3$4', $text); echo $text;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fAhS0
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'qwe+%3Ca+href%3D%22%2Fasd%2Fghj%2Fwer.html%22%3E123%3C%2Fa%3E%2C+qwe+%3Ca+href%3D%22http%3A%2F%2Fwww.arrivo.ru%2Fasdwer.html%22%3E123%3C%2Fa%3E%2C+qwe+%3Ca+href%3D%22%2F%2Farrivo.ru%2Fw%2Fsd%2Fger.html%22%3E123%3C%2Fa%3E%2C+qwe+%3Ca+href%3D%22http%3A%2F%2Fyandex.ru%2Findex.html%22%3E123%3C%2Fa%3E%2C+qwe+%3Ca+href%3D%22%2Fsmth%2Felse%22%3E123%3C%2Fa%3E%2C+http%3A%2F%2Fwww.arrivo.ru%2Fnooo.html+%3A%29'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%3Ca+%28.%2B%29%28%28http%3A%7Chttps%3A%29%3F%2F%2F%28www%5C.%29%3Farrivo%5C.ru%7C%2F%5B%5E%2F%5D%29%2F%28.%2B%29%5C.html%28.%2B%29%3E%23isU'
          3        SEND_VAL                                                 '%3Ca+%241%242%2F%243%244'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        ECHO                                                     !0
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.86 ms | 1394 KiB | 15 Q