3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.22 ms | 1404 KiB | 19 Q