3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); include_once 'include/validasiUser.php'; $user = new User(); if ($user->get_session()) { header("location:proses.php"); } if ($_SERVER["REQUEST_METHOD"] == "POST") { $login = $user->check_login($_POST['emailusername'], $_POST['password']); if ($login) { // Login Berhasil header("location:index.php"); } else { // Login Gagal echo '<center><b>Maaf, Email atau password yang anda masukkan <u>salah</u></b></center>'; } } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>FORM LOGIN</title> <style> body { font-family:Arial, Helvetica, sans-serif; } </style> </head> <body> <div id="container"><center> <div id="main-body"> <br/><br/> <form method="POST" action="" id="login_form" name="login"> <div class="head"> <b> LOGIN DISINI,<br><i>Email = afayuraputra@gmail.com</i> dan <i>Password = 115060800111025</i></b><br/><br/> </div> <label>Email </label><br/> <input type="text" name="emailusername" required="true"/><br/> <br/> <label>Password</label><br/> <input type="password" name="password" id="password" required="true"/><br/><br/> <input type="hidden" name="flag" value="login"/> <input type="submit" name="login_btn" onclick="return( submitregistration());" value="Login"/><br/><br/> </form> </div> </center> </div> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 33
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 12
filename:       /in/EPf03
function name:  (null)
number of ops:  35
compiled vars:  !0 = $user, !1 = $login
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        INCLUDE_OR_EVAL                                          'include%2FvalidasiUser.php', INCLUDE_ONCE
    4     3        NEW                                              $4      'User'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $4
    6     6        INIT_METHOD_CALL                                         !0, 'get_session'
          7        DO_FCALL                                      0  $7      
          8      > JMPZ                                                     $7, ->12
    8     9    >   INIT_FCALL                                               'header'
         10        SEND_VAL                                                 'location%3Aproses.php'
         11        DO_ICALL                                                 
   11    12    >   FETCH_R                      global              ~9      '_SERVER'
         13        FETCH_DIM_R                                      ~10     ~9, 'REQUEST_METHOD'
         14        IS_EQUAL                                                 ~10, 'POST'
         15      > JMPZ                                                     ~11, ->33
   12    16    >   INIT_METHOD_CALL                                         !0, 'check_login'
         17        CHECK_FUNC_ARG                                           
         18        FETCH_FUNC_ARG               global              $12     '_POST'
         19        FETCH_DIM_FUNC_ARG                               $13     $12, 'emailusername'
         20        SEND_FUNC_ARG                                            $13
         21        CHECK_FUNC_ARG                                           
         22        FETCH_FUNC_ARG               global              $14     '_POST'
         23        FETCH_DIM_FUNC_ARG                               $15     $14, 'password'
         24        SEND_FUNC_ARG                                            $15
         25        DO_FCALL                                      0  $16     
         26        ASSIGN                                                   !1, $16
   13    27      > JMPZ                                                     !1, ->32
   15    28    >   INIT_FCALL                                               'header'
         29        SEND_VAL                                                 'location%3Aindex.php'
         30        DO_ICALL                                                 
         31      > JMP                                                      ->33
   18    32    >   ECHO                                                     '%3Ccenter%3E%3Cb%3EMaaf%2C+Email+atau+password+yang+anda+masukkan+%3Cu%3Esalah%3C%2Fu%3E%3C%2Fb%3E%3C%2Fcenter%3E'
   22    33    >   ECHO                                                     '%3Chtml%3E%0A++++%3Chead%3E%0A++++++++%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DISO-8859-1%22%3E%0A+++++++%0A++++++++%3Ctitle%3EFORM+LOGIN%3C%2Ftitle%3E%0A%09%09%3Cstyle%3E%0A%09%09body%0A%09%09%7B%0A%09%09%09%09font-family%3AArial%2C+Helvetica%2C+sans-serif%3B%0A%09%09%7D%0A%09%09%3C%2Fstyle%3E%0A%09%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++%3Cdiv+id%3D%22container%22%3E%3Ccenter%3E%0A+++++++++++%0A++++++++++++%3Cdiv+id%3D%22main-body%22%3E%0A++++++++++++++++%3Cbr%2F%3E%3Cbr%2F%3E%0A++++++++++++++++%3Cform+method%3D%22POST%22+action%3D%22%22++id%3D%22login_form%22+name%3D%22login%22%3E%0A++++++++++++++++++++%3Cdiv+class%3D%22head%22%3E%0A++++++++++++++++++++++++%3Cb%3E+LOGIN+DISINI%2C%3Cbr%3E%3Ci%3EEmail+%3D+afayuraputra%40gmail.com%3C%2Fi%3E+dan+%3Ci%3EPassword+%3D+115060800111025%3C%2Fi%3E%3C%2Fb%3E%3Cbr%2F%3E%3Cbr%2F%3E%0A++++++++++++++++++++%3C%2Fdiv%3E%0A++++++++++++++++++++%3Clabel%3EEmail+%3C%2Flabel%3E%3Cbr%2F%3E%0A++++++++++++++++++++%3Cinput+type%3D%22text%22+name%3D%22emailusername%22++required%3D%22true%22%2F%3E%3Cbr%2F%3E+++++++++%3Cbr%2F%3E%0A++++++++++++++++++++%3Clabel%3EPassword%3C%2Flabel%3E%3Cbr%2F%3E%0A++++++++++++++++++++%3Cinput+type%3D%22password%22+name%3D%22password%22+id%3D%22password%22+required%3D%22true%22%2F%3E%3Cbr%2F%3E%3Cbr%2F%3E%0A++++++++++++++++++++%3Cinput+type%3D%22hidden%22+name%3D%22flag%22+value%3D%22login%22%2F%3E%0A++++++++++++++++++++%3Cinput+type%3D%22submit%22+name%3D%22login_btn%22+onclick%3D%22return%28+submitregistration%28%29%29%3B%22+value%3D%22Login%22%2F%3E%3Cbr%2F%3E%3Cbr%2F%3E%0A++++++++++++++++%3C%2Fform%3E%0A++++++++++++%3C%2Fdiv%3E%0A+++++++++++%3C%2Fcenter%3E%0A++++++++%3C%2Fdiv%3E%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   55    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.74 ms | 1400 KiB | 17 Q