3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "apple\'fgfgf"; #echo $search; echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "apple"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J7hg1
function name:  (null)
number of ops:  13
compiled vars:  !0 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'apple%5C%27fgfgf'
    4     1        INIT_FCALL                                               'preg_replace'
          2        CONCAT                                           ~2      '%2F', !0
          3        CONCAT                                           ~3      ~2, '%2F'
          4        SEND_VAL                                                 ~3
          5        CONCAT                                           ~4      !0, '+%3Cimg+src%3D%27'
          6        CONCAT                                           ~5      ~4, !0
          7        CONCAT                                           ~6      ~5, '.png%27%3E'
          8        SEND_VAL                                                 ~6
          9        SEND_VAL                                                 'apple'
         10        DO_ICALL                                         $7      
         11        ECHO                                                     $7
    5    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.33 ms | 1394 KiB | 15 Q