3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "[url]http://www.lol.nl[/url]"; $bericht = preg_replace("/\[url=([^[]*)\]([^[]*)\[\/url\]/", "<a href='1' target='_blank'>\\2</a>", $string); echo $bericht; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rcm02
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $bericht
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5Burl%5Dhttp%3A%2F%2Fwww.lol.nl%5B%2Furl%5D'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%5Burl%3D%28%5B%5E%5B%5D%2A%29%5C%5D%28%5B%5E%5B%5D%2A%29%5C%5B%5C%2Furl%5C%5D%2F'
          3        SEND_VAL                                                 '%3Ca+href%3D%271%27+target%3D%27_blank%27%3E%5C2%3C%2Fa%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    4     7        ECHO                                                     !1
    5     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.36 ms | 1394 KiB | 15 Q