3v4l.org

run code in 500+ PHP versions simultaneously
<?php $beskrivelse = "\\<img>30.jpg\\<img> \\<img>50.jpg\\<img>"; echo "ORIGINAL: " . $beskrivelse . PHP_EOL; $beskrivelse = preg_replace('/\\\\<img>(.*?)\\\\<img>/', "<img scr='img/\$1'>", $beskrivelse); echo "NEW: " . $beskrivelse . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i4CeR
function name:  (null)
number of ops:  11
compiled vars:  !0 = $beskrivelse
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5C%3Cimg%3E30.jpg%5C%3Cimg%3E+%5C%3Cimg%3E50.jpg%5C%3Cimg%3E'
    4     1        CONCAT                                               ~2      'ORIGINAL%3A+', !0
          2        CONCAT                                               ~3      ~2, '%0A'
          3        ECHO                                                         ~3
    5     4        FRAMELESS_ICALL_3                preg_replace        ~4      '%2F%5C%5C%3Cimg%3E%28.%2A%3F%29%5C%5C%3Cimg%3E%2F', '%3Cimg+scr%3D%27img%2F%241%27%3E'
          5        OP_DATA                                                      !0
          6        ASSIGN                                                       !0, ~4
    6     7        CONCAT                                               ~6      'NEW%3A+', !0
          8        CONCAT                                               ~7      ~6, '%0A'
          9        ECHO                                                         ~7
    7    10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.23 ms | 1590 KiB | 13 Q