3v4l.org

run code in 300+ PHP versions simultaneously
<!-- Má posta á hvaða síðu sem er innan WP vefsins --> <form method="post" action=""> <!-- POST request verður alltaf að innihalda field með heitinu 'afylling' --> <input type="hidden" name="afylling" /> <!-- $_SESSION['afylling']['errors'] er array af strengjum sem innihalda villuskilaboð --> <!-- Default (engar villur) er tómur array --> <?php foreach ($_SESSION['afylling']['errors'] as $error) : ?> <span style="color: red; display:block;"><?= $error; ?></span> <?php endforeach ?> <!-- Fyrra skref áfyllingar --> <!-- step er default 1 --> <?php if($_SESSION['afylling']['step'] == 1) : ?> <!-- Innbyggt WP validation --> <?php wp_nonce_field('afylling_step1'); ?> <!-- Required fields --> <input type="text" placeholder="Símanúmer" name="afylling_simanumer" value="<?= $_SESSION['afylling']['data']['simanumer']; ?>" /> <input type="text" placeholder="Upphæð" name="afylling_upphaed" value="<?= $_SESSION['afylling']['data']['upphaed']; ?>" /> <!-- Seinna skref áfyllingar, ef fyrra skref tekst --> <?php elseif($_SESSION['afylling']['step'] == 2) : ?> <!-- Innbyggt WP validation --> <?php wp_nonce_field('afylling_step2'); ?> <!-- Required fields --> <input type="text" placeholder="Kortanúmer" name="afylling_kortanumer" /> <input type="text" placeholder="MM" name="afylling_mm" /> <input type="text" placeholder="ÁÁ" name="afylling_aa" /> <input type="text" placeholder="CVC" name="afylling_cvc" /> <?php endif ?> <!-- Skiptir ekki máli hvert value er hér --> <input type="submit" name="submit" value="Submit" /> </form>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 35
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 45
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
Branch analysis from position: 10
filename:       /in/2JDKY
function name:  (null)
number of ops:  47
compiled vars:  !0 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21--+M%C3%A1+posta+%C3%A1+hva%C3%B0a+s%C3%AD%C3%B0u+sem+er+innan+WP+vefsins+--%3E%0A%3Cform+method%3D%22post%22+action%3D%22%22%3E%0A%0A%09%3C%21--+POST+request+ver%C3%B0ur+alltaf+a%C3%B0+innihalda+field+me%C3%B0+heitinu+%27afylling%27+--%3E%0A%09%3Cinput+type%3D%22hidden%22+name%3D%22afylling%22+%2F%3E%0A%0A%09%3C%21--+%24_SESSION%5B%27afylling%27%5D%5B%27errors%27%5D+er+array+af+strengjum+sem+innihalda+villuskilabo%C3%B0+--%3E%0A%09%3C%21--+Default+%28engar+villur%29+er+t%C3%B3mur+array+--%3E%0A%09'
    9     1        FETCH_R                      global              ~1      '_SESSION'
          2        FETCH_DIM_R                                      ~2      ~1, 'afylling'
          3        FETCH_DIM_R                                      ~3      ~2, 'errors'
          4      > FE_RESET_R                                       $4      ~3, ->10
          5    > > FE_FETCH_R                                               $4, !0, ->10
   10     6    >   ECHO                                                     '%09%09%3Cspan+style%3D%22color%3A+red%3B+display%3Ablock%3B%22%3E'
          7        ECHO                                                     !0
          8        ECHO                                                     '%3C%2Fspan%3E%0A%09'
    9     9      > JMP                                                      ->5
         10    >   FE_FREE                                                  $4
   12    11        ECHO                                                     '%0A%09%3C%21--+Fyrra+skref+%C3%A1fyllingar+--%3E%0A%09%3C%21--+step+er+default+1+--%3E%0A%09'
   15    12        FETCH_R                      global              ~5      '_SESSION'
         13        FETCH_DIM_R                                      ~6      ~5, 'afylling'
         14        FETCH_DIM_R                                      ~7      ~6, 'step'
         15        IS_EQUAL                                                 ~7, 1
         16      > JMPZ                                                     ~8, ->35
   16    17    >   ECHO                                                     '%0A%09%09%3C%21--+Innbyggt+WP+validation+--%3E%0A%09%09'
   18    18        INIT_FCALL_BY_NAME                                       'wp_nonce_field'
         19        SEND_VAL_EX                                              'afylling_step1'
         20        DO_FCALL                                      0          
   19    21        ECHO                                                     '%0A%09%09%3C%21--+Required+fields+--%3E%0A%09%09%3Cinput+type%3D%22text%22+placeholder%3D%22S%C3%ADman%C3%BAmer%22+name%3D%22afylling_simanumer%22+value%3D%22'
   21    22        FETCH_R                      global              ~10     '_SESSION'
         23        FETCH_DIM_R                                      ~11     ~10, 'afylling'
         24        FETCH_DIM_R                                      ~12     ~11, 'data'
         25        FETCH_DIM_R                                      ~13     ~12, 'simanumer'
         26        ECHO                                                     ~13
         27        ECHO                                                     '%22+%2F%3E%0A%09%09%3Cinput+type%3D%22text%22+placeholder%3D%22Upph%C3%A6%C3%B0%22+name%3D%22afylling_upphaed%22+value%3D%22'
   22    28        FETCH_R                      global              ~14     '_SESSION'
         29        FETCH_DIM_R                                      ~15     ~14, 'afylling'
         30        FETCH_DIM_R                                      ~16     ~15, 'data'
         31        FETCH_DIM_R                                      ~17     ~16, 'upphaed'
         32        ECHO                                                     ~17
         33        ECHO                                                     '%22+%2F%3E%0A%0A%09%3C%21--+Seinna+skref+%C3%A1fyllingar%2C+ef+fyrra+skref+tekst+--%3E%0A%09'
         34      > JMP                                                      ->45
   25    35    >   FETCH_R                      global              ~18     '_SESSION'
         36        FETCH_DIM_R                                      ~19     ~18, 'afylling'
         37        FETCH_DIM_R                                      ~20     ~19, 'step'
         38        IS_EQUAL                                                 ~20, 2
         39      > JMPZ                                                     ~21, ->45
   26    40    >   ECHO                                                     '%0A%09%09%09%3C%21--+Innbyggt+WP+validation+--%3E%0A%09%09'
   28    41        INIT_FCALL_BY_NAME                                       'wp_nonce_field'
         42        SEND_VAL_EX                                              'afylling_step2'
         43        DO_FCALL                                      0          
   29    44        ECHO                                                     '%0A%09%09%3C%21--+Required+fields+--%3E%0A%09%09%3Cinput+type%3D%22text%22+placeholder%3D%22Kortan%C3%BAmer%22+name%3D%22afylling_kortanumer%22+%2F%3E%0A%09%09%3Cinput+type%3D%22text%22+placeholder%3D%22MM%22+name%3D%22afylling_mm%22+%2F%3E%0A%09%09%3Cinput+type%3D%22text%22+placeholder%3D%22%C3%81%C3%81%22+name%3D%22afylling_aa%22+%2F%3E%0A%09%09%3Cinput+type%3D%22text%22+placeholder%3D%22CVC%22+name%3D%22afylling_cvc%22+%2F%3E%0A%0A%09'
   37    45    >   ECHO                                                     '%0A%09%3C%21--+Skiptir+ekki+m%C3%A1li+hvert+value+er+h%C3%A9r+--%3E%0A%09%3Cinput+type%3D%22submit%22+name%3D%22submit%22+value%3D%22Submit%22+%2F%3E%0A%3C%2Fform%3E'
   40    46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.44 ms | 1399 KiB | 13 Q