3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!(isset($_GET['azienda'], $_GET['indirizzo'], $_GET['citta'], $_GET['telefono'], $_GET['descrizione']))) echo 'errore manca una o piĆ¹ variabili nella query string'; elseif ($_GET['azienda'] && $_GET['indirizzo']) { $fp = fopen($_GET['azienda'] . 'html', 'w+') or die('errore nell\'apertura del file'); fwrite($fp, 'azienda: ' . $_GET['azienda'] . '<br> indirizzo: ' . $_GET['indirizzo'] . '<br> citta: ' . $_GET['citta'] . '<br> telefono: ' . $_GET['telefono'] . '<br> descrizione: ' . $_GET['descrizione'] ) or die('errore nella scrittura del file'); fclose($fp); echo 'pagina ' . $_GET['azienda'] . 'html' . ' inserita correttamente'; } else { echo 'errore nel form, probabilmente non compilato azienda e/o indirizzo'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 28
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 76
Branch analysis from position: 29
2 jumps found. (Code = 47) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 40
2 jumps found. (Code = 47) Position 1 = 64, Position 2 = 66
Branch analysis from position: 64
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 66
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
Branch analysis from position: 76
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 18
Branch analysis from position: 14
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/0lM8b
function name:  (null)
number of ops:  78
compiled vars:  !0 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                         ~1      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      ~1, 'azienda'
          2      > JMPZ_EX                                          ~2      ~2, ->6
          3    >   FETCH_IS                                         ~3      '_GET'
          4        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      ~3, 'indirizzo'
          5        BOOL                                             ~2      ~4
          6    > > JMPZ_EX                                          ~2      ~2, ->10
          7    >   FETCH_IS                                         ~5      '_GET'
          8        ISSET_ISEMPTY_DIM_OBJ                         0  ~6      ~5, 'citta'
          9        BOOL                                             ~2      ~6
         10    > > JMPZ_EX                                          ~2      ~2, ->14
         11    >   FETCH_IS                                         ~7      '_GET'
         12        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 'telefono'
         13        BOOL                                             ~2      ~8
         14    > > JMPZ_EX                                          ~2      ~2, ->18
         15    >   FETCH_IS                                         ~9      '_GET'
         16        ISSET_ISEMPTY_DIM_OBJ                         0  ~10     ~9, 'descrizione'
         17        BOOL                                             ~2      ~10
         18    >   BOOL_NOT                                         ~11     ~2
         19      > JMPZ                                                     ~11, ->22
    4    20    >   ECHO                                                     'errore+manca+una+o+pi%C3%B9+variabili+nella+query+string'
    3    21      > JMP                                                      ->77
    5    22    >   FETCH_R                      global              ~12     '_GET'
         23        FETCH_DIM_R                                      ~13     ~12, 'azienda'
         24      > JMPZ_EX                                          ~13     ~13, ->28
         25    >   FETCH_R                      global              ~14     '_GET'
         26        FETCH_DIM_R                                      ~15     ~14, 'indirizzo'
         27        BOOL                                             ~13     ~15
         28    > > JMPZ                                                     ~13, ->76
    8    29    >   INIT_FCALL                                               'fopen'
         30        FETCH_R                      global              ~16     '_GET'
         31        FETCH_DIM_R                                      ~17     ~16, 'azienda'
         32        CONCAT                                           ~18     ~17, 'html'
         33        SEND_VAL                                                 ~18
         34        SEND_VAL                                                 'w%2B'
         35        DO_ICALL                                         $19     
         36        ASSIGN                                           ~20     !0, $19
         37      > JMPNZ_EX                                         ~20     ~20, ->40
         38    > > EXIT                                                     'errore+nell%27apertura+del+file'
         39*       BOOL                                             ~20     <true>
   11    40    >   INIT_FCALL                                               'fwrite'
         41        SEND_VAR                                                 !0
         42        FETCH_R                      global              ~21     '_GET'
         43        FETCH_DIM_R                                      ~22     ~21, 'azienda'
         44        CONCAT                                           ~23     'azienda%3A+', ~22
         45        CONCAT                                           ~24     ~23, '%3Cbr%3E+indirizzo%3A+'
         46        FETCH_R                      global              ~25     '_GET'
         47        FETCH_DIM_R                                      ~26     ~25, 'indirizzo'
         48        CONCAT                                           ~27     ~24, ~26
         49        CONCAT                                           ~28     ~27, '%3Cbr%3E+citta%3A+'
         50        FETCH_R                      global              ~29     '_GET'
         51        FETCH_DIM_R                                      ~30     ~29, 'citta'
         52        CONCAT                                           ~31     ~28, ~30
   12    53        CONCAT                                           ~32     ~31, '%3Cbr%3E+telefono%3A+'
         54        FETCH_R                      global              ~33     '_GET'
         55        FETCH_DIM_R                                      ~34     ~33, 'telefono'
         56        CONCAT                                           ~35     ~32, ~34
         57        CONCAT                                           ~36     ~35, '%3Cbr%3E+descrizione%3A+'
         58        FETCH_R                      global              ~37     '_GET'
         59        FETCH_DIM_R                                      ~38     ~37, 'descrizione'
         60        CONCAT                                           ~39     ~36, ~38
         61        SEND_VAL                                                 ~39
   11    62        DO_ICALL                                         $40     
   12    63      > JMPNZ_EX                                         ~41     $40, ->66
   13    64    > > EXIT                                                     'errore+nella+scrittura+del+file'
         65*       BOOL                                             ~41     <true>
   14    66    >   INIT_FCALL                                               'fclose'
         67        SEND_VAR                                                 !0
         68        DO_ICALL                                                 
   17    69        FETCH_R                      global              ~43     '_GET'
         70        FETCH_DIM_R                                      ~44     ~43, 'azienda'
         71        CONCAT                                           ~45     'pagina+', ~44
         72        CONCAT                                           ~46     ~45, 'html'
         73        CONCAT                                           ~47     ~46, '+inserita+correttamente'
         74        ECHO                                                     ~47
    5    75      > JMP                                                      ->77
   20    76    >   ECHO                                                     'errore+nel+form%2C+probabilmente+non+compilato+azienda+e%2Fo+indirizzo'
   22    77    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.02 ms | 1470 KiB | 16 Q