3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '<h1>Oude tekst hier</h1>'; $search = "/[^<h1>](.*)[^<\/h1>]/"; $replace = "Here my new text"; $content = preg_replace($search,$replace,$string); echo $content;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0JBZB
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string, !1 = $search, !2 = $replace, !3 = $content
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Ch1%3EOude+tekst+hier%3C%2Fh1%3E'
    5     1        ASSIGN                                                       !1, '%2F%5B%5E%3Ch1%3E%5D%28.%2A%29%5B%5E%3C%5C%2Fh1%3E%5D%2F'
    6     2        ASSIGN                                                       !2, 'Here+my+new+text'
    8     3        FRAMELESS_ICALL_3                preg_replace        ~7      !1, !2
          4        OP_DATA                                                      !0
          5        ASSIGN                                                       !3, ~7
   10     6        ECHO                                                         !3
   11     7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.47 ms | 1868 KiB | 13 Q