3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tipo_b = $quantita_vendita = $scontrino = $fatturato = $luogo_vendita = 0; $error_string = ''; if(!isset($_GET['tipo_b'])) { $error_string .= 'HAI DIMENTICATO A SPECIFICARE I CHILI DELLA BOMBOLA CHE VUOI VENDERE !!'; } if(!isset($_GET['quantita_vendita'])) { $error_string .= 'HAI DIMENTICATO A SPECIFICARE LA QUANTITA DI VENDITA'; } if(!isset($_GET['scontrino'])) { $error_string .= 'HAI DIMENTICATO A SCEGLIERE SE SCONTRINARE O NO IL PRODOTTO CHE STAI VENDENDO !!'; } if(!isset($_GET['fatturato'])) { $error_string .= 'HAI DIMENTICATO A SPECIFICARE SE SONO FATTURATE O NO !!'; } if(!isset($_GET['luogo_vendita'])) { $error_string .= 'HAI DIMENTICATO A SPECIFICARE SE SONO STATE VENDUTE A DOMICILIO O IN NEGOZIO !!'; } if($error_string == '') { $tipo_b = (int) $_GET['tipo_b']; $quantita_vendita = (int) $_GET['quantita_vendita']; if($_GET['scontrino'] == 'SI') { $scontrino = true; } else { $scontrino = false; } if($_GET['fatturato'] == 'SI') { $fatturato = true; } else { $fatturato = false; } $luogo_vendita = (string) $_GET['luogo_vendita']; if($tipo_b < 1) { $error_string .= 'DEVI SCEGLIERE LA QUANTITA DI CHILI SUPERIORE A ZERO'; } if($quantita_vendita < 1) { $error_string .= 'DEVI SCEGLIERE LA QUANTITA DI VENDITA SUPERIORE A ZERO'; } if($error_string == '') { //php code } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 26
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 31
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 67
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 47
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 54
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 55
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 62
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 65
Branch analysis from position: 64
2 jumps found. (Code = 43) Position 1 = 67, Position 2 = 67
Branch analysis from position: 67
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 67
Branch analysis from position: 65
Branch analysis from position: 62
Branch analysis from position: 54
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 62
Branch analysis from position: 61
Branch analysis from position: 62
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 54
Branch analysis from position: 52
Branch analysis from position: 54
Branch analysis from position: 67
Branch analysis from position: 31
Branch analysis from position: 26
Branch analysis from position: 21
Branch analysis from position: 16
Branch analysis from position: 11
filename:       /in/s45Bk
function name:  (null)
number of ops:  68
compiled vars:  !0 = $tipo_b, !1 = $quantita_vendita, !2 = $scontrino, !3 = $fatturato, !4 = $luogo_vendita, !5 = $error_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~6      !4, 0
          1        ASSIGN                                           ~7      !3, ~6
          2        ASSIGN                                           ~8      !2, ~7
          3        ASSIGN                                           ~9      !1, ~8
          4        ASSIGN                                                   !0, ~9
    3     5        ASSIGN                                                   !5, ''
    4     6        FETCH_IS                                         ~12     '_GET'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     ~12, 'tipo_b'
          8        BOOL_NOT                                         ~14     ~13
          9      > JMPZ                                                     ~14, ->11
    5    10    >   ASSIGN_OP                                     8          !5, 'HAI+DIMENTICATO+A+SPECIFICARE+I+CHILI+DELLA+BOMBOLA+CHE+VUOI+VENDERE+%21%21'
    7    11    >   FETCH_IS                                         ~16     '_GET'
         12        ISSET_ISEMPTY_DIM_OBJ                         0  ~17     ~16, 'quantita_vendita'
         13        BOOL_NOT                                         ~18     ~17
         14      > JMPZ                                                     ~18, ->16
    8    15    >   ASSIGN_OP                                     8          !5, 'HAI+DIMENTICATO+A+SPECIFICARE+LA+QUANTITA+DI+VENDITA'
   10    16    >   FETCH_IS                                         ~20     '_GET'
         17        ISSET_ISEMPTY_DIM_OBJ                         0  ~21     ~20, 'scontrino'
         18        BOOL_NOT                                         ~22     ~21
         19      > JMPZ                                                     ~22, ->21
   11    20    >   ASSIGN_OP                                     8          !5, 'HAI+DIMENTICATO+A+SCEGLIERE+SE+SCONTRINARE+O+NO+IL+PRODOTTO+CHE+STAI+VENDENDO+%21%21'
   13    21    >   FETCH_IS                                         ~24     '_GET'
         22        ISSET_ISEMPTY_DIM_OBJ                         0  ~25     ~24, 'fatturato'
         23        BOOL_NOT                                         ~26     ~25
         24      > JMPZ                                                     ~26, ->26
   14    25    >   ASSIGN_OP                                     8          !5, 'HAI+DIMENTICATO+A+SPECIFICARE+SE+SONO+FATTURATE+O+NO+%21%21'
   16    26    >   FETCH_IS                                         ~28     '_GET'
         27        ISSET_ISEMPTY_DIM_OBJ                         0  ~29     ~28, 'luogo_vendita'
         28        BOOL_NOT                                         ~30     ~29
         29      > JMPZ                                                     ~30, ->31
   17    30    >   ASSIGN_OP                                     8          !5, 'HAI+DIMENTICATO+A+SPECIFICARE+SE+SONO+STATE+VENDUTE+A+DOMICILIO+O+IN+NEGOZIO+%21%21'
   19    31    >   IS_EQUAL                                                 !5, ''
         32      > JMPZ                                                     ~32, ->67
   20    33    >   FETCH_R                      global              ~33     '_GET'
         34        FETCH_DIM_R                                      ~34     ~33, 'tipo_b'
         35        CAST                                          4  ~35     ~34
         36        ASSIGN                                                   !0, ~35
   21    37        FETCH_R                      global              ~37     '_GET'
         38        FETCH_DIM_R                                      ~38     ~37, 'quantita_vendita'
         39        CAST                                          4  ~39     ~38
         40        ASSIGN                                                   !1, ~39
   22    41        FETCH_R                      global              ~41     '_GET'
         42        FETCH_DIM_R                                      ~42     ~41, 'scontrino'
         43        IS_EQUAL                                                 ~42, 'SI'
         44      > JMPZ                                                     ~43, ->47
   23    45    >   ASSIGN                                                   !2, <true>
   22    46      > JMP                                                      ->48
   25    47    >   ASSIGN                                                   !2, <false>
   27    48    >   FETCH_R                      global              ~46     '_GET'
         49        FETCH_DIM_R                                      ~47     ~46, 'fatturato'
         50        IS_EQUAL                                                 ~47, 'SI'
         51      > JMPZ                                                     ~48, ->54
   28    52    >   ASSIGN                                                   !3, <true>
   27    53      > JMP                                                      ->55
   30    54    >   ASSIGN                                                   !3, <false>
   32    55    >   FETCH_R                      global              ~51     '_GET'
         56        FETCH_DIM_R                                      ~52     ~51, 'luogo_vendita'
         57        CAST                                          6  ~53     ~52
         58        ASSIGN                                                   !4, ~53
   33    59        IS_SMALLER                                               !0, 1
         60      > JMPZ                                                     ~55, ->62
   34    61    >   ASSIGN_OP                                     8          !5, 'DEVI+SCEGLIERE+LA+QUANTITA+DI+CHILI+SUPERIORE+A+ZERO'
   36    62    >   IS_SMALLER                                               !1, 1
         63      > JMPZ                                                     ~57, ->65
   37    64    >   ASSIGN_OP                                     8          !5, 'DEVI+SCEGLIERE+LA+QUANTITA+DI+VENDITA+SUPERIORE+A+ZERO'
   39    65    >   IS_EQUAL                                                 !5, ''
         66      > JMPZ                                                     ~59, ->67
   42    67    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
455 ms | 1004 KiB | 13 Q