3v4l.org

run code in 300+ PHP versions simultaneously
<?php $usr=(username); $pwd=(password); $sql = "SELECT username, password from users where (username = '".$usr."') and (password = '".$pwd."')"; sc_select(dataset, $sql); if (isset($dataset[0] [0])) { echo "Μπράβο"; } else // Record found { echo "Μπράβο"; //sc_redir(menu) }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8s81m
function name:  (null)
number of ops:  21
compiled vars:  !0 = $usr, !1 = $pwd, !2 = $sql, !3 = $dataset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~4      'username'
          1        ASSIGN                                                   !0, ~4
    3     2        FETCH_CONSTANT                                   ~6      'password'
          3        ASSIGN                                                   !1, ~6
    7     4        CONCAT                                           ~8      'SELECT+username%2C+password%0A%09%09from+users%0A%09%09where+%28username+%3D+%27', !0
          5        CONCAT                                           ~9      ~8, '%27%29%0A%09%09and+%28password+%3D+%27'
    8     6        CONCAT                                           ~10     ~9, !1
          7        CONCAT                                           ~11     ~10, '%27%29'
    5     8        ASSIGN                                                   !2, ~11
   10     9        INIT_FCALL_BY_NAME                                       'sc_select'
         10        FETCH_CONSTANT                                   ~13     'dataset'
         11        SEND_VAL_EX                                              ~13
         12        SEND_VAR_EX                                              !2
         13        DO_FCALL                                      0          
   12    14        FETCH_DIM_IS                                     ~15     !3, 0
         15        ISSET_ISEMPTY_DIM_OBJ                         0          ~15, 0
         16      > JMPZ                                                     ~16, ->19
   14    17    >   ECHO                                                     '%CE%9C%CF%80%CF%81%CE%AC%CE%B2%CE%BF'
         18      > JMP                                                      ->20
   18    19    >   ECHO                                                     '%CE%9C%CF%80%CF%81%CE%AC%CE%B2%CE%BF'
   19    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.94 ms | 1394 KiB | 13 Q