3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); //Munkamenet-kezeléshez kell // Ha rányomunk az űrlapot elküldő gombra... if ($_POST["submit"] == "Be! A Vörös Hadseregbe!") { //...ellenőrizzük, hogy jó-e a jelszó if ($_POST["pw"] == "Raszputyin") { $_SESSION["loggedin"] = true; } else { $_SESSION["loggedin"] = false; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Jelszópélda</title> </head> <body> <div id="container" style="text-align: center;"> <p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Red_army_conscript_hat_insignia.jpg/150px-Red_army_conscript_hat_insignia.jpg" alt="Vörös Hadsereg" /></p> <?php if ($_SESSION["loggedin"] == false) { ?> <form id="myform" action="" method="post"> <p> <label for="pw">Jelszó</label>: <input type="password" name="pw" id="pw" /> </p> <p> <input style="color:red;" type="submit" name="submit" id="submit"value="Be! A Vörös Hadseregbe!" /> </p> </form> <?php } else { ?> <p style="color:red;">Sikeres bejelentkezés! Üdvözlünk Elvtárs!</p> <?php } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
Branch analysis from position: 24
Branch analysis from position: 17
filename:       /in/07INX
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    4     2        FETCH_R                      global              ~1      '_POST'
          3        FETCH_DIM_R                                      ~2      ~1, 'submit'
          4        IS_EQUAL                                                 ~2, 'Be%21+A+V%C3%B6r%C3%B6s+Hadseregbe%21'
          5      > JMPZ                                                     ~3, ->17
    6     6    >   FETCH_R                      global              ~4      '_POST'
          7        FETCH_DIM_R                                      ~5      ~4, 'pw'
          8        IS_EQUAL                                                 ~5, 'Raszputyin'
          9      > JMPZ                                                     ~6, ->14
    7    10    >   FETCH_W                      global              $7      '_SESSION'
         11        ASSIGN_DIM                                               $7, 'loggedin'
         12        OP_DATA                                                  <true>
         13      > JMP                                                      ->17
    9    14    >   FETCH_W                      global              $9      '_SESSION'
         15        ASSIGN_DIM                                               $9, 'loggedin'
         16        OP_DATA                                                  <false>
   13    17    >   ECHO                                                     '%3C%21DOCTYPE+html+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Transitional%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd%22%3E%0A%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%3Chead%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22%3E%0A%3Ctitle%3EJelsz%C3%B3p%C3%A9lda%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%09%3Cdiv+id%3D%22container%22+style%3D%22text-align%3A+center%3B%22%3E%0A%09%3Cp%3E%3Cimg+src%3D%22http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F7%2F7d%2FRed_army_conscript_hat_insignia.jpg%2F150px-Red_army_conscript_hat_insignia.jpg%22+alt%3D%22V%C3%B6r%C3%B6s+Hadsereg%22+%2F%3E%3C%2Fp%3E%0A'
   23    18        FETCH_R                      global              ~11     '_SESSION'
         19        FETCH_DIM_R                                      ~12     ~11, 'loggedin'
         20        BOOL_NOT                                         ~13     ~12
         21      > JMPZ                                                     ~13, ->24
   25    22    >   ECHO                                                     '%09%3Cform+id%3D%22myform%22+action%3D%22%22+method%3D%22post%22%3E%0A%09%09%3Cp%3E%0A%09%09%09%3Clabel+for%3D%22pw%22%3EJelsz%C3%B3%3C%2Flabel%3E%3A%0A%09%09%09%3Cinput+type%3D%22password%22+name%3D%22pw%22+id%3D%22pw%22+%2F%3E%0A%09%09%3C%2Fp%3E%0A%09%09%3Cp%3E%0A%09%09%09%3Cinput+style%3D%22color%3Ared%3B%22+type%3D%22submit%22+name%3D%22submit%22+id%3D%22submit%22value%3D%22Be%21+A+V%C3%B6r%C3%B6s+Hadseregbe%21%22+%2F%3E%0A%09%09%3C%2Fp%3E%0A%09%3C%2Fform%3E%0A'
         23      > JMP                                                      ->25
   37    24    >   ECHO                                                     '%09%3Cp+style%3D%22color%3Ared%3B%22%3ESikeres+bejelentkez%C3%A9s%21+%C3%9Cdv%C3%B6zl%C3%BCnk+Elvt%C3%A1rs%21%3C%2Fp%3E%0A'
   41    25    >   ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   42    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.21 ms | 1400 KiB | 15 Q