3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.34 ms | 1395 KiB | 17 Q