3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '[btn href="(.?)" "(.?)"]'; echo preg_replace('#\[btn href="(.*?)" "(.*?)"\]#i', '<a href="$1" class="btn"> $2</a>', $content);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qteH1
function name:  (null)
number of ops:  8
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5Bbtn+href%3D%22%28.%3F%29%22+%22%28.%3F%29%22%5D'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%5C%5Bbtn+href%3D%22%28.%2A%3F%29%22+%22%28.%2A%3F%29%22%5C%5D%23i'
          3        SEND_VAL                                                 '%3Ca+href%3D%22%241%22+class%3D%22btn%22%3E+%242%3C%2Fa%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1394 KiB | 15 Q