3v4l.org

run code in 300+ PHP versions simultaneously
<?php include_once('config.php'); // terima data dari halaman index.php $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); $email = mysql_real_escape_string($_POST['email']); $fullname = mysql_real_escape_string($_POST['fullname']); $role = 'member'; // variabel untuk settingan default level yang mendaftar // simpan data ke database $query = mysql_query("insert into users values('', '$username', '$password', '$email', '$fullname', '$role')"); if ($query) { // jika berhasil menyimpan header('location: index.php?msg=success'); } else { // jika gagal menyimpan header('location: index.php?msg=failed'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 50
Branch analysis from position: 46
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hb6ni
function name:  (null)
number of ops:  54
compiled vars:  !0 = $username, !1 = $password, !2 = $email, !3 = $fullname, !4 = $role, !5 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'config.php', INCLUDE_ONCE
    5     1        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          2        CHECK_FUNC_ARG                                           
          3        FETCH_FUNC_ARG               global              $7      '_POST'
          4        FETCH_DIM_FUNC_ARG                               $8      $7, 'username'
          5        SEND_FUNC_ARG                                            $8
          6        DO_FCALL                                      0  $9      
          7        ASSIGN                                                   !0, $9
    6     8        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_FUNC_ARG               global              $11     '_POST'
         11        FETCH_DIM_FUNC_ARG                               $12     $11, 'password'
         12        SEND_FUNC_ARG                                            $12
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !1, $13
    7    15        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
         16        CHECK_FUNC_ARG                                           
         17        FETCH_FUNC_ARG               global              $15     '_POST'
         18        FETCH_DIM_FUNC_ARG                               $16     $15, 'email'
         19        SEND_FUNC_ARG                                            $16
         20        DO_FCALL                                      0  $17     
         21        ASSIGN                                                   !2, $17
    8    22        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
         23        CHECK_FUNC_ARG                                           
         24        FETCH_FUNC_ARG               global              $19     '_POST'
         25        FETCH_DIM_FUNC_ARG                               $20     $19, 'fullname'
         26        SEND_FUNC_ARG                                            $20
         27        DO_FCALL                                      0  $21     
         28        ASSIGN                                                   !3, $21
    9    29        ASSIGN                                                   !4, 'member'
   12    30        INIT_FCALL_BY_NAME                                       'mysql_query'
         31        ROPE_INIT                                    11  ~25     'insert+into+users+values%28%27%27%2C+%27'
         32        ROPE_ADD                                      1  ~25     ~25, !0
         33        ROPE_ADD                                      2  ~25     ~25, '%27%2C+%27'
         34        ROPE_ADD                                      3  ~25     ~25, !1
         35        ROPE_ADD                                      4  ~25     ~25, '%27%2C+%27'
         36        ROPE_ADD                                      5  ~25     ~25, !2
         37        ROPE_ADD                                      6  ~25     ~25, '%27%2C+%27'
         38        ROPE_ADD                                      7  ~25     ~25, !3
         39        ROPE_ADD                                      8  ~25     ~25, '%27%2C+%27'
         40        ROPE_ADD                                      9  ~25     ~25, !4
         41        ROPE_END                                     10  ~24     ~25, '%27%29'
         42        SEND_VAL_EX                                              ~24
         43        DO_FCALL                                      0  $31     
         44        ASSIGN                                                   !5, $31
   14    45      > JMPZ                                                     !5, ->50
   16    46    >   INIT_FCALL                                               'header'
         47        SEND_VAL                                                 'location%3A+index.php%3Fmsg%3Dsuccess'
         48        DO_ICALL                                                 
         49      > JMP                                                      ->53
   19    50    >   INIT_FCALL                                               'header'
         51        SEND_VAL                                                 'location%3A+index.php%3Fmsg%3Dfailed'
         52        DO_ICALL                                                 
   20    53    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.42 ms | 1404 KiB | 15 Q