3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('#<(a|h\d)[^>]*>.*+</\1>\K(*SKIP)(*FAIL)|test#', '<$0>', 'test Приходите в наш <a d>test</a> видеочат, бывший когда-то test\'м.testa больше нет. Забейте на <h2>test</h3> Труконф test').PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UBPPV
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%23%3C%28a%7Ch%5Cd%29%5B%5E%3E%5D%2A%3E.%2A%2B%3C%2F%5C1%3E%5CK%28%2ASKIP%29%28%2AFAIL%29%7Ctest%23'
          2        SEND_VAL                                                 '%3C%240%3E'
          3        SEND_VAL                                                 'test+%D0%9F%D1%80%D0%B8%D1%85%D0%BE%D0%B4%D0%B8%D1%82%D0%B5+%D0%B2+%D0%BD%D0%B0%D1%88+%3Ca+d%3Etest%3C%2Fa%3E+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE%D1%87%D0%B0%D1%82%2C+%D0%B1%D1%8B%D0%B2%D1%88%D0%B8%D0%B9+%D0%BA%D0%BE%D0%B3%D0%B4%D0%B0-%D1%82%D0%BE+test%27%D0%BC.testa+%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5+%D0%BD%D0%B5%D1%82.+%D0%97%D0%B0%D0%B1%D0%B5%D0%B9%D1%82%D0%B5+%D0%BD%D0%B0+%3Ch2%3Etest%3C%2Fh3%3E+%D0%A2%D1%80%D1%83%D0%BA%D0%BE%D0%BD%D1%84+test'
          4        DO_ICALL                                         $0      
          5        CONCAT                                           ~1      $0, '%0A'
          6        ECHO                                                     ~1
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.46 ms | 1385 KiB | 15 Q