3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ' <img height="20" src="https://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" data-thumb="//i.ytimg.com/i/YfdidRxbB8Qhf0Nx7ioOYw/1.jpg" width="20" aria-hidden="true" >'; $input = preg_replace('#<img[^>]*data-thumb=#s', '<img alt="Thumbnail" src=', $input); echo $input;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sQIM1
function name:  (null)
number of ops:  9
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '+%3Cimg+height%3D%2220%22+src%3D%22https%3A%2F%2Fs.ytimg.com%2Fyts%2Fimg%2Fpixel-vfl3z5WfW.gif%22+alt%3D%22%22+data-thumb%3D%22%2F%2Fi.ytimg.com%2Fi%2FYfdidRxbB8Qhf0Nx7ioOYw%2F1.jpg%22+width%3D%2220%22+aria-hidden%3D%22true%22+%3E'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%3Cimg%5B%5E%3E%5D%2Adata-thumb%3D%23s'
          3        SEND_VAL                                                 '%3Cimg+alt%3D%22Thumbnail%22+src%3D'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        ECHO                                                     !0
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.49 ms | 939 KiB | 16 Q