3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.86 ms | 1400 KiB | 19 Q