3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "phpinfo();#|apple/e\0"; if (strpos($search, 'apple') !== false) { echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "apple"); } else { echo "Please search for apple, orange, banana, or kiwi."; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cs6Br
function name:  (null)
number of ops:  21
compiled vars:  !0 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'phpinfo%28%29%3B%23%7Capple%2Fe%00'
    5     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'apple'
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                  1018          $2
          6      > JMPZ                                                     ~3, ->19
    7     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
         18      > JMP                                                      ->20
    9    19    >   ECHO                                                     'Please+search+for+apple%2C+orange%2C+banana%2C+or+kiwi.'
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.66 ms | 1386 KiB | 17 Q