3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "apple"; 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/LcNei
function name:  (null)
number of ops:  14
compiled vars:  !0 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'apple'
    3     1        ECHO                                                     !0
    4     2        INIT_FCALL                                               'preg_replace'
          3        CONCAT                                           ~2      '%2F', !0
          4        CONCAT                                           ~3      ~2, '%2F'
          5        SEND_VAL                                                 ~3
          6        CONCAT                                           ~4      !0, '+%3Cimg+src%3D%27'
          7        CONCAT                                           ~5      ~4, !0
          8        CONCAT                                           ~6      ~5, '.png%27%3E'
          9        SEND_VAL                                                 ~6
         10        SEND_VAL                                                 'apple'
         11        DO_ICALL                                         $7      
         12        ECHO                                                     $7
    5    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.92 ms | 1385 KiB | 15 Q