3v4l.org

run code in 300+ PHP versions simultaneously
<?php function adminer_object() { class AdminerSoftware extends Adminer { function name() { // custom name in title and heading return 'Software'; } function permanentLogin() { // key used for permanent login return "f8ee948505701abca3021525592e55b5"; } function credentials() { // server, username and password for connecting to database return array('localhost', 'ODBC', ''); } function database() { // database name, will be escaped by Adminer return 'software'; } function login($login, $password) { // validate user submitted credentials return ($login == 'admin' && $password == ''); } function tableName($tableStatus) { // tables without comments would return empty string and will be ignored by Adminer return h($tableStatus["Comment"]); } function fieldName($field, $order = 0) { // only columns with comments will be displayed and only the first five in select return ($order <= 5 && !preg_match('~_(md5|sha1)$~', $field["field"]) ? h($field["comment"]) : ""); } } return new AdminerSoftware; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z79S1
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   44     0  E > > RETURN                                                   1

Function adminer_object:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z79S1
function name:  adminer_object
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'adminersoftware', 'adminer'
   43     1        NEW                                              $0      'AdminerSoftware'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   $0
   44     4*     > RETURN                                                   null

End of function adminer_object

Class AdminerSoftware:
Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z79S1
function name:  name
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   'Software'
    9     1*     > RETURN                                                   null

End of function name

Function permanentlogin:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z79S1
function name:  permanentLogin
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   'f8ee948505701abca3021525592e55b5'
   14     1*     > RETURN                                                   null

End of function permanentlogin

Function credentials:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z79S1
function name:  credentials
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   <array>
   19     1*     > RETURN                                                   null

End of function credentials

Function database:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z79S1
function name:  database
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                   'software'
   24     1*     > RETURN                                                   null

End of function database

Function login:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/Z79S1
function name:  login
number of ops:  8
compiled vars:  !0 = $login, !1 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   28     2        IS_EQUAL                                         ~2      !0, 'admin'
          3      > JMPZ_EX                                          ~2      ~2, ->6
          4    >   IS_EQUAL                                         ~3      !1, ''
          5        BOOL                                             ~2      ~3
          6    > > RETURN                                                   ~2
   29     7*     > RETURN                                                   null

End of function login

Function tablename:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z79S1
function name:  tableName
number of ops:  8
compiled vars:  !0 = $tableStatus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   RECV                                             !0      
   33     1        INIT_FCALL_BY_NAME                                       'h'
          2        CHECK_FUNC_ARG                                           
          3        FETCH_DIM_FUNC_ARG                               $1      !0, 'Comment'
          4        SEND_FUNC_ARG                                            $1
          5        DO_FCALL                                      0  $2      
          6      > RETURN                                                   $2
   34     7*     > RETURN                                                   null

End of function tablename

Function fieldname:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
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
Branch analysis from position: 11
filename:       /in/Z79S1
function name:  fieldName
number of ops:  22
compiled vars:  !0 = $field, !1 = $order
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
   38     2        IS_SMALLER_OR_EQUAL                              ~2      !1, 5
          3      > JMPZ_EX                                          ~2      ~2, ->11
          4    >   INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%7E_%28md5%7Csha1%29%24%7E'
          6        FETCH_DIM_R                                      ~3      !0, 'field'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
          9        BOOL_NOT                                         ~5      $4
         10        BOOL                                             ~2      ~5
         11    > > JMPZ                                                     ~2, ->19
         12    >   INIT_FCALL_BY_NAME                                       'h'
         13        CHECK_FUNC_ARG                                           
         14        FETCH_DIM_FUNC_ARG                               $6      !0, 'comment'
         15        SEND_FUNC_ARG                                            $6
         16        DO_FCALL                                      0  $7      
         17        QM_ASSIGN                                        ~8      $7
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~8      ''
         20    > > RETURN                                                   ~8
   39    21*     > RETURN                                                   null

End of function fieldname

End of class AdminerSoftware.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.15 ms | 1404 KiB | 15 Q