3v4l.org

run code in 500+ 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 = 81
Branch analysis from position: 81
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 = 80
Branch analysis from position: 29
2 jumps found. (Code = 47) Position 1 = 38, Position 2 = 42
Branch analysis from position: 38
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 42
2 jumps found. (Code = 47) Position 1 = 66, Position 2 = 70
Branch analysis from position: 66
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 70
1 jumps found. (Code = 42) Position 1 = 81
Branch analysis from position: 81
Branch analysis from position: 80
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:  82
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                                                          ->81
    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, ->80
    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, ->42
         38    > > INIT_FCALL                                                   'exit'
         39*       SEND_VAL                                                     'errore+nell%27apertura+del+file'
         40*       DO_ICALL                                             $21     
         41*       BOOL                                                 ~20     $21
   11    42    >   INIT_FCALL                                                   'fwrite'
         43        SEND_VAR                                                     !0
         44        FETCH_R                          global              ~22     '_GET'
         45        FETCH_DIM_R                                          ~23     ~22, 'azienda'
         46        CONCAT                                               ~24     'azienda%3A+', ~23
         47        CONCAT                                               ~25     ~24, '%3Cbr%3E+indirizzo%3A+'
         48        FETCH_R                          global              ~26     '_GET'
         49        FETCH_DIM_R                                          ~27     ~26, 'indirizzo'
         50        CONCAT                                               ~28     ~25, ~27
         51        CONCAT                                               ~29     ~28, '%3Cbr%3E+citta%3A+'
         52        FETCH_R                          global              ~30     '_GET'
         53        FETCH_DIM_R                                          ~31     ~30, 'citta'
         54        CONCAT                                               ~32     ~29, ~31
   12    55        CONCAT                                               ~33     ~32, '%3Cbr%3E+telefono%3A+'
         56        FETCH_R                          global              ~34     '_GET'
         57        FETCH_DIM_R                                          ~35     ~34, 'telefono'
         58        CONCAT                                               ~36     ~33, ~35
         59        CONCAT                                               ~37     ~36, '%3Cbr%3E+descrizione%3A+'
         60        FETCH_R                          global              ~38     '_GET'
         61        FETCH_DIM_R                                          ~39     ~38, 'descrizione'
         62        CONCAT                                               ~40     ~37, ~39
         63        SEND_VAL                                                     ~40
   11    64        DO_ICALL                                             $41     
   12    65      > JMPNZ_EX                                             ~42     $41, ->70
   13    66    > > INIT_FCALL                                                   'exit'
         67*       SEND_VAL                                                     'errore+nella+scrittura+del+file'
         68*       DO_ICALL                                             $43     
         69*       BOOL                                                 ~42     $43
   14    70    >   INIT_FCALL                                                   'fclose'
         71        SEND_VAR                                                     !0
         72        DO_ICALL                                                     
   17    73        FETCH_R                          global              ~45     '_GET'
         74        FETCH_DIM_R                                          ~46     ~45, 'azienda'
         75        CONCAT                                               ~47     'pagina+', ~46
         76        CONCAT                                               ~48     ~47, 'html'
         77        CONCAT                                               ~49     ~48, '+inserita+correttamente'
         78        ECHO                                                         ~49
    5    79      > JMP                                                          ->81
   20    80    >   ECHO                                                         'errore+nel+form%2C+probabilmente+non+compilato+azienda+e%2Fo+indirizzo'
   22    81    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
238.83 ms | 2121 KiB | 17 Q