3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ((($_FILES["file"]["size"] < 20000) )) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br>"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo "Type: " . $_FILES["file"]["type"] . "<br>"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br>"; if (file_exists("upload/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. Please rename the file and try again."; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "/home/a5405761/public_html/i/" . $_FILES["file"]["name"]); echo "Stored in: " . "/i/" . $_FILES["file"]["name"]; } } } else { echo "Invalid file."; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 73
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
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: 17
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 56
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
Branch analysis from position: 56
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/gHe4A
function name:  (null)
number of ops:  75
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~0      '_FILES'
          1        FETCH_DIM_R                                      ~1      ~0, 'file'
          2        FETCH_DIM_R                                      ~2      ~1, 'size'
          3        IS_SMALLER                                               ~2, 20000
          4      > JMPZ                                                     ~3, ->73
    4     5    >   FETCH_R                      global              ~4      '_FILES'
          6        FETCH_DIM_R                                      ~5      ~4, 'file'
          7        FETCH_DIM_R                                      ~6      ~5, 'error'
          8        IS_SMALLER                                               0, ~6
          9      > JMPZ                                                     ~7, ->17
    6    10    >   FETCH_R                      global              ~8      '_FILES'
         11        FETCH_DIM_R                                      ~9      ~8, 'file'
         12        FETCH_DIM_R                                      ~10     ~9, 'error'
         13        CONCAT                                           ~11     'Return+Code%3A+', ~10
         14        CONCAT                                           ~12     ~11, '%3Cbr%3E'
         15        ECHO                                                     ~12
         16      > JMP                                                      ->72
   10    17    >   FETCH_R                      global              ~13     '_FILES'
         18        FETCH_DIM_R                                      ~14     ~13, 'file'
         19        FETCH_DIM_R                                      ~15     ~14, 'name'
         20        CONCAT                                           ~16     'Upload%3A+', ~15
         21        CONCAT                                           ~17     ~16, '%3Cbr%3E'
         22        ECHO                                                     ~17
   11    23        FETCH_R                      global              ~18     '_FILES'
         24        FETCH_DIM_R                                      ~19     ~18, 'file'
         25        FETCH_DIM_R                                      ~20     ~19, 'type'
         26        CONCAT                                           ~21     'Type%3A+', ~20
         27        CONCAT                                           ~22     ~21, '%3Cbr%3E'
         28        ECHO                                                     ~22
   12    29        FETCH_R                      global              ~23     '_FILES'
         30        FETCH_DIM_R                                      ~24     ~23, 'file'
         31        FETCH_DIM_R                                      ~25     ~24, 'size'
         32        DIV                                              ~26     ~25, 1024
         33        CONCAT                                           ~27     'Size%3A+', ~26
         34        CONCAT                                           ~28     ~27, '+kB%3Cbr%3E'
         35        ECHO                                                     ~28
   13    36        FETCH_R                      global              ~29     '_FILES'
         37        FETCH_DIM_R                                      ~30     ~29, 'file'
         38        FETCH_DIM_R                                      ~31     ~30, 'tmp_name'
         39        CONCAT                                           ~32     'Temp+file%3A+', ~31
         40        CONCAT                                           ~33     ~32, '%3Cbr%3E'
         41        ECHO                                                     ~33
   15    42        INIT_FCALL                                               'file_exists'
         43        FETCH_R                      global              ~34     '_FILES'
         44        FETCH_DIM_R                                      ~35     ~34, 'file'
         45        FETCH_DIM_R                                      ~36     ~35, 'name'
         46        CONCAT                                           ~37     'upload%2F', ~36
         47        SEND_VAL                                                 ~37
         48        DO_ICALL                                         $38     
         49      > JMPZ                                                     $38, ->56
   17    50    >   FETCH_R                      global              ~39     '_FILES'
         51        FETCH_DIM_R                                      ~40     ~39, 'file'
         52        FETCH_DIM_R                                      ~41     ~40, 'name'
         53        CONCAT                                           ~42     ~41, '+already+exists.+Please+rename+the+file+and+try+again.'
         54        ECHO                                                     ~42
         55      > JMP                                                      ->72
   21    56    >   INIT_FCALL                                               'move_uploaded_file'
         57        FETCH_R                      global              ~43     '_FILES'
         58        FETCH_DIM_R                                      ~44     ~43, 'file'
         59        FETCH_DIM_R                                      ~45     ~44, 'tmp_name'
         60        SEND_VAL                                                 ~45
   22    61        FETCH_R                      global              ~46     '_FILES'
         62        FETCH_DIM_R                                      ~47     ~46, 'file'
         63        FETCH_DIM_R                                      ~48     ~47, 'name'
         64        CONCAT                                           ~49     '%2Fhome%2Fa5405761%2Fpublic_html%2Fi%2F', ~48
         65        SEND_VAL                                                 ~49
         66        DO_ICALL                                                 
   23    67        FETCH_R                      global              ~51     '_FILES'
         68        FETCH_DIM_R                                      ~52     ~51, 'file'
         69        FETCH_DIM_R                                      ~53     ~52, 'name'
         70        CONCAT                                           ~54     'Stored+in%3A+%2Fi%2F', ~53
         71        ECHO                                                     ~54
         72    > > JMP                                                      ->74
   29    73    >   ECHO                                                     'Invalid+file.'
   31    74    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.84 ms | 1392 KiB | 17 Q