3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Traitement des confitions if(isset($_REQUEST)): $ancienCode = $_POST['ancienCode']; $ancienLib = $_POST['ancienLibelle']; $ancienPrix = $_POST['ancienPrix']; $code = $_POST['code']; $lib = $_POST['libelle']; $prix = $_POST['prix']; if($ancienCode != $code): if (codeExistence($code) == 1): echo("Le code existe déjà ..."); die('<meta http-equiv="refresh" content="2;URL=./backoffice.phtml">'); else: if(($ancienLib != $lib) && ($ancienPrix != $prix)): updateForfait('all', array($ancienCode, $code, $lib, $prix)); else: ($ancienLib != $lib) ? updateForfait('codeAll', array($code, $lib)) : updateForfait('codePrix', array($code, $prix)); endif; endif; else: if(($ancienLib != $lib) && ($ancienPrix != $prix)): updateForfait('libPrix', array($ancienCode, $lib, $prix)); else: ($ancienLib != $lib) ? updateForfait('lib', array($ancienCode, $lib)) : updateForfait('prix', array($ancienCode, $prix)); endif; endif; endif; // Traitement en base function updateForfait($action, $datas = false){ switch ($action) { case "all": // Traitement break; case "codeAll": // Traitement break; case "codePrix": // Traitement break; case "libPrix": // Traitement break; case "lib": // Traitement break; case "prix": // Traitement break; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 94
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 63
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 46) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 44
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 62
Branch analysis from position: 62
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 54
Branch analysis from position: 46
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
Branch analysis from position: 54
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
Branch analysis from position: 34
Branch analysis from position: 63
2 jumps found. (Code = 46) Position 1 = 65, Position 2 = 67
Branch analysis from position: 65
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 76
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
Branch analysis from position: 76
2 jumps found. (Code = 43) Position 1 = 78, Position 2 = 86
Branch analysis from position: 78
1 jumps found. (Code = 42) Position 1 = 93
Branch analysis from position: 93
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 86
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 67
Branch analysis from position: 94
filename:       /in/DsKZ0
function name:  (null)
number of ops:  95
compiled vars:  !0 = $ancienCode, !1 = $ancienLib, !2 = $ancienPrix, !3 = $code, !4 = $lib, !5 = $prix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ISSET_ISEMPTY_VAR                             2          '_REQUEST'
          1      > JMPZ                                                     ~6, ->94
    7     2    >   FETCH_R                      global              ~7      '_POST'
          3        FETCH_DIM_R                                      ~8      ~7, 'ancienCode'
          4        ASSIGN                                                   !0, ~8
    8     5        FETCH_R                      global              ~10     '_POST'
          6        FETCH_DIM_R                                      ~11     ~10, 'ancienLibelle'
          7        ASSIGN                                                   !1, ~11
    9     8        FETCH_R                      global              ~13     '_POST'
          9        FETCH_DIM_R                                      ~14     ~13, 'ancienPrix'
         10        ASSIGN                                                   !2, ~14
   10    11        FETCH_R                      global              ~16     '_POST'
         12        FETCH_DIM_R                                      ~17     ~16, 'code'
         13        ASSIGN                                                   !3, ~17
   11    14        FETCH_R                      global              ~19     '_POST'
         15        FETCH_DIM_R                                      ~20     ~19, 'libelle'
         16        ASSIGN                                                   !4, ~20
   12    17        FETCH_R                      global              ~22     '_POST'
         18        FETCH_DIM_R                                      ~23     ~22, 'prix'
         19        ASSIGN                                                   !5, ~23
   14    20        IS_NOT_EQUAL                                             !0, !3
         21      > JMPZ                                                     ~25, ->63
   15    22    >   INIT_FCALL_BY_NAME                                       'codeExistence'
         23        SEND_VAR_EX                                              !3
         24        DO_FCALL                                      0  $26     
         25        IS_EQUAL                                                 $26, 1
         26      > JMPZ                                                     ~27, ->30
   16    27    >   ECHO                                                     'Le+code+existe+d%C3%A9j%C3%A0+...'
   17    28      > EXIT                                                     '%3Cmeta+http-equiv%3D%22refresh%22+content%3D%222%3BURL%3D.%2Fbackoffice.phtml%22%3E'
         29*       JMP                                                      ->62
   19    30    >   IS_NOT_EQUAL                                     ~28     !1, !4
         31      > JMPZ_EX                                          ~28     ~28, ->34
         32    >   IS_NOT_EQUAL                                     ~29     !2, !5
         33        BOOL                                             ~28     ~29
         34    > > JMPZ                                                     ~28, ->44
   20    35    >   INIT_FCALL_BY_NAME                                       'updateForfait'
         36        SEND_VAL_EX                                              'all'
         37        INIT_ARRAY                                       ~30     !0
         38        ADD_ARRAY_ELEMENT                                ~30     !3
         39        ADD_ARRAY_ELEMENT                                ~30     !4
         40        ADD_ARRAY_ELEMENT                                ~30     !5
         41        SEND_VAL_EX                                              ~30
         42        DO_FCALL                                      0          
         43      > JMP                                                      ->62
   22    44    >   IS_NOT_EQUAL                                             !1, !4
         45      > JMPZ                                                     ~32, ->54
         46    >   INIT_FCALL_BY_NAME                                       'updateForfait'
         47        SEND_VAL_EX                                              'codeAll'
         48        INIT_ARRAY                                       ~33     !3
         49        ADD_ARRAY_ELEMENT                                ~33     !4
         50        SEND_VAL_EX                                              ~33
         51        DO_FCALL                                      0  $34     
         52        QM_ASSIGN                                        ~35     $34
         53      > JMP                                                      ->61
         54    >   INIT_FCALL_BY_NAME                                       'updateForfait'
         55        SEND_VAL_EX                                              'codePrix'
         56        INIT_ARRAY                                       ~36     !3
         57        ADD_ARRAY_ELEMENT                                ~36     !5
         58        SEND_VAL_EX                                              ~36
         59        DO_FCALL                                      0  $37     
         60        QM_ASSIGN                                        ~35     $37
         61    >   FREE                                                     ~35
         62    > > JMP                                                      ->94
   27    63    >   IS_NOT_EQUAL                                     ~38     !1, !4
         64      > JMPZ_EX                                          ~38     ~38, ->67
         65    >   IS_NOT_EQUAL                                     ~39     !2, !5
         66        BOOL                                             ~38     ~39
         67    > > JMPZ                                                     ~38, ->76
   28    68    >   INIT_FCALL_BY_NAME                                       'updateForfait'
         69        SEND_VAL_EX                                              'libPrix'
         70        INIT_ARRAY                                       ~40     !0
         71        ADD_ARRAY_ELEMENT                                ~40     !4
         72        ADD_ARRAY_ELEMENT                                ~40     !5
         73        SEND_VAL_EX                                              ~40
         74        DO_FCALL                                      0          
         75      > JMP                                                      ->94
   30    76    >   IS_NOT_EQUAL                                             !1, !4
         77      > JMPZ                                                     ~42, ->86
         78    >   INIT_FCALL_BY_NAME                                       'updateForfait'
         79        SEND_VAL_EX                                              'lib'
         80        INIT_ARRAY                                       ~43     !0
         81        ADD_ARRAY_ELEMENT                                ~43     !4
         82        SEND_VAL_EX                                              ~43
         83        DO_FCALL                                      0  $44     
         84        QM_ASSIGN                                        ~45     $44
         85      > JMP                                                      ->93
         86    >   INIT_FCALL_BY_NAME                                       'updateForfait'
         87        SEND_VAL_EX                                              'prix'
         88        INIT_ARRAY                                       ~46     !0
         89        ADD_ARRAY_ELEMENT                                ~46     !5
         90        SEND_VAL_EX                                              ~46
         91        DO_FCALL                                      0  $47     
         92        QM_ASSIGN                                        ~45     $47
         93    >   FREE                                                     ~45
   63    94    > > RETURN                                                   1

Function updateforfait:
Finding entry points
Branch analysis from position: 0
8 jumps found. (Code = 188) Position 1 = 16, Position 2 = 17, Position 3 = 18, Position 4 = 19, Position 5 = 20, Position 6 = 21, Position 7 = 22, Position 8 = 3
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 22
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 21
Branch analysis from position: 20
Branch analysis from position: 19
Branch analysis from position: 18
Branch analysis from position: 17
Branch analysis from position: 16
filename:       /in/DsKZ0
function name:  updateForfait
number of ops:  23
compiled vars:  !0 = $action, !1 = $datas
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <false>
   42     2      > SWITCH_STRING                                            !0, [ 'all':->16, 'codeAll':->17, 'codePrix':->18, 'libPrix':->19, 'lib':->20, 'prix':->21, ], ->22
   43     3    >   IS_EQUAL                                                 !0, 'all'
          4      > JMPNZ                                                    ~2, ->16
   46     5    >   IS_EQUAL                                                 !0, 'codeAll'
          6      > JMPNZ                                                    ~2, ->17
   49     7    >   IS_EQUAL                                                 !0, 'codePrix'
          8      > JMPNZ                                                    ~2, ->18
   52     9    >   IS_EQUAL                                                 !0, 'libPrix'
         10      > JMPNZ                                                    ~2, ->19
   55    11    >   IS_EQUAL                                                 !0, 'lib'
         12      > JMPNZ                                                    ~2, ->20
   58    13    >   IS_EQUAL                                                 !0, 'prix'
         14      > JMPNZ                                                    ~2, ->21
         15    > > JMP                                                      ->22
   45    16    > > JMP                                                      ->22
   48    17    > > JMP                                                      ->22
   51    18    > > JMP                                                      ->22
   54    19    > > JMP                                                      ->22
   57    20    > > JMP                                                      ->22
   60    21    > > JMP                                                      ->22
   63    22    > > RETURN                                                   null

End of function updateforfait

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.43 ms | 1407 KiB | 13 Q