3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "phpinfo()<!--|apple/e\x00-->"; if (strpos($search, 'apple') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "apple"); }elseif (strpos($search, 'orange') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "orange"); }elseif (strpos($search, 'banana') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "banana"); }elseif (strpos($search, 'kiwi') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "kiwi"); }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 = 74
Branch analysis from position: 74
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 37
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 74
Branch analysis from position: 74
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 55
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 74
Branch analysis from position: 74
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 73
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 74
Branch analysis from position: 74
Branch analysis from position: 73
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fneib
function name:  (null)
number of ops:  75
compiled vars:  !0 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, 'phpinfo%28%29%3C%21--%7Capple%2Fe%00--%3E'
          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    >   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                                                      ->74
         19    >   INIT_FCALL                                               'strpos'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 'orange'
         22        DO_ICALL                                         $10     
         23        TYPE_CHECK                                  1018          $10
         24      > JMPZ                                                     ~11, ->37
         25    >   INIT_FCALL                                               'preg_replace'
         26        CONCAT                                           ~12     '%2F', !0
         27        CONCAT                                           ~13     ~12, '%2F'
         28        SEND_VAL                                                 ~13
         29        CONCAT                                           ~14     !0, '+%3Cimg+src%3D%27'
         30        CONCAT                                           ~15     ~14, !0
         31        CONCAT                                           ~16     ~15, '.png%27%3E'
         32        SEND_VAL                                                 ~16
         33        SEND_VAL                                                 'orange'
         34        DO_ICALL                                         $17     
         35        ECHO                                                     $17
         36      > JMP                                                      ->74
         37    >   INIT_FCALL                                               'strpos'
         38        SEND_VAR                                                 !0
         39        SEND_VAL                                                 'banana'
         40        DO_ICALL                                         $18     
         41        TYPE_CHECK                                  1018          $18
         42      > JMPZ                                                     ~19, ->55
         43    >   INIT_FCALL                                               'preg_replace'
         44        CONCAT                                           ~20     '%2F', !0
         45        CONCAT                                           ~21     ~20, '%2F'
         46        SEND_VAL                                                 ~21
         47        CONCAT                                           ~22     !0, '+%3Cimg+src%3D%27'
         48        CONCAT                                           ~23     ~22, !0
         49        CONCAT                                           ~24     ~23, '.png%27%3E'
         50        SEND_VAL                                                 ~24
         51        SEND_VAL                                                 'banana'
         52        DO_ICALL                                         $25     
         53        ECHO                                                     $25
         54      > JMP                                                      ->74
         55    >   INIT_FCALL                                               'strpos'
         56        SEND_VAR                                                 !0
         57        SEND_VAL                                                 'kiwi'
         58        DO_ICALL                                         $26     
         59        TYPE_CHECK                                  1018          $26
         60      > JMPZ                                                     ~27, ->73
         61    >   INIT_FCALL                                               'preg_replace'
         62        CONCAT                                           ~28     '%2F', !0
         63        CONCAT                                           ~29     ~28, '%2F'
         64        SEND_VAL                                                 ~29
         65        CONCAT                                           ~30     !0, '+%3Cimg+src%3D%27'
         66        CONCAT                                           ~31     ~30, !0
         67        CONCAT                                           ~32     ~31, '.png%27%3E'
         68        SEND_VAL                                                 ~32
         69        SEND_VAL                                                 'kiwi'
         70        DO_ICALL                                         $33     
         71        ECHO                                                     $33
         72      > JMP                                                      ->74
         73    >   ECHO                                                     'Please+search+for+apple%2C+orange%2C+banana%2C+or+kiwi.'
         74    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.91 ms | 1400 KiB | 17 Q