3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Users_model extends CI_Model { protected $table_name = 'users'; // Добавляет пользователя в базу данных protected function signup_user($data = FALSE) { if (!is_array($data) || !$data) return FALSE; $this->db->insert($this->table_name, $data); return $this->db->insert_id(); } protected function delete($id = FALSE) { if (!$id) return FALSE; $this->db->delete($this->table_name, array('id' => $id)); return $this->db->affected_rows() ? TRUE : FALSE; } public function get_user_info($fields = '*', $user_id = FALSE, $where = FALSE) { if (!$user_id) return FALSE; if (!is_array($where)) $where = array('id' => (int)$user_id); $query = $this->db->select($fields)->get_where($this->table_name, $where); if ($query->num_rows()) { return $query->row(); } return FALSE; } protected function get_users($fields = '*', $where = FALSE, $from = FALSE, $limit = FALSE) { $this->db->select($fields); if (is_array($where)) $this->db->where($where); if ($from !== FALSE and $limit !== FALSE) $this->db->limit($from, $limit); $query = $this->db->get($this->table_name); if ($query->num_rows()) { return $query->result(); } return FALSE; } protected function get_current_user($fields = '*') { $user_id = $this->session->userdata('id'); $query = $this->db->select($fields)->get_where($this->table_name, array('id' => $user_id)); if ($query->num_rows()) { return $query->row(); } return FALSE; } protected function get_user_by_email($fields = '*', $email = FALSE) { if (!$email) return FALSE; $query = $this->db->select($fields)->get_where($this->table_name, array('login' => $email)); if ($query->num_rows()) { return $query->row(); } return FALSE; } protected function update_user_info($user_id = FALSE, $data = FALSE) { if (!$user_id or !$data) return FALSE; if (!$this->is_user_exist($user_id)) return FALSE; $this->db->where('id', $user_id)->update($this->table_name, $data); return $this->db->affected_rows() ? TRUE : FALSE; } protected function is_user_exist($user_id = FALSE) { if (!$user_id) return FALSE; $query = $this->db->select('id')->get_where($this->table_name, array('id' => $user_id)); return $query->num_rows() ? TRUE : FALSE; } public function is_email_exist($email = FALSE) { if (!$email) return FALSE; $query = $this->db->select('id')->get_where($this->table_name, array('login' => $email)); return $query->num_rows() ? TRUE : FALSE; } public function is_logged_in() { return (bool)$this->session->userdata('id'); } public function get_user_group() { return (int)$this->session->userdata('group'); } // Генерит случайные пароли protected function password_verify($password = '', $hash = '') { $this->load->helper('password'); return password_verify($password, $hash); } // Хеширует пароль пользователя protected function password_hash($password = FALSE) { $this->load->helper('password'); $this->load->helper('string'); $hash = password_hash($password, PASSWORD_DEFAULT, array("cost" => 10, "salt" => random_string('alnum', 25))); return $hash; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   DEFINED                                          ~0      'BASEPATH'
          1        BOOL_NOT                                         ~1      ~0
          2      > JMPZ                                                     ~1, ->4
          3    > > EXIT                                                     'No+direct+script+access+allowed'
    3     4    >   DECLARE_CLASS                                            'users_model', 'ci_model'
  149     5      > RETURN                                                   1

Class Users_model:
Function signup_user:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/AHusm
function name:  signup_user
number of ops:  20
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      <false>
    9     1        TYPE_CHECK                                  128  ~1      !0
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPNZ_EX                                         ~2      ~2, ->6
          4    >   BOOL_NOT                                         ~3      !0
          5        BOOL                                             ~2      ~3
          6    > > JMPZ                                                     ~2, ->8
   10     7    > > RETURN                                                   <false>
   12     8    >   FETCH_OBJ_R                                      ~4      'db'
          9        INIT_METHOD_CALL                                         ~4, 'insert'
         10        CHECK_FUNC_ARG                                           
         11        FETCH_OBJ_FUNC_ARG                               $5      'table_name'
         12        SEND_FUNC_ARG                                            $5
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
   14    15        FETCH_OBJ_R                                      ~7      'db'
         16        INIT_METHOD_CALL                                         ~7, 'insert_id'
         17        DO_FCALL                                      0  $8      
         18      > RETURN                                                   $8
   15    19*     > RETURN                                                   null

End of function signup_user

Function delete:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  delete
number of ops:  21
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV_INIT                                        !0      <false>
   19     1        BOOL_NOT                                         ~1      !0
          2      > JMPZ                                                     ~1, ->4
   20     3    > > RETURN                                                   <false>
   22     4    >   FETCH_OBJ_R                                      ~2      'db'
          5        INIT_METHOD_CALL                                         ~2, 'delete'
          6        CHECK_FUNC_ARG                                           
          7        FETCH_OBJ_FUNC_ARG                               $3      'table_name'
          8        SEND_FUNC_ARG                                            $3
          9        INIT_ARRAY                                       ~4      !0, 'id'
         10        SEND_VAL_EX                                              ~4
         11        DO_FCALL                                      0          
   23    12        FETCH_OBJ_R                                      ~6      'db'
         13        INIT_METHOD_CALL                                         ~6, 'affected_rows'
         14        DO_FCALL                                      0  $7      
         15      > JMPZ                                                     $7, ->18
         16    >   QM_ASSIGN                                        ~8      <true>
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~8      <false>
         19    > > RETURN                                                   ~8
   24    20*     > RETURN                                                   null

End of function delete

Function get_user_info:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/AHusm
function name:  get_user_info
number of ops:  31
compiled vars:  !0 = $fields, !1 = $user_id, !2 = $where, !3 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV_INIT                                        !0      '%2A'
          1        RECV_INIT                                        !1      <false>
          2        RECV_INIT                                        !2      <false>
   28     3        BOOL_NOT                                         ~4      !1
          4      > JMPZ                                                     ~4, ->6
   29     5    > > RETURN                                                   <false>
   31     6    >   TYPE_CHECK                                  128  ~5      !2
          7        BOOL_NOT                                         ~6      ~5
          8      > JMPZ                                                     ~6, ->12
   32     9    >   CAST                                          4  ~7      !1
         10        INIT_ARRAY                                       ~8      ~7, 'id'
         11        ASSIGN                                                   !2, ~8
   34    12    >   FETCH_OBJ_R                                      ~10     'db'
         13        INIT_METHOD_CALL                                         ~10, 'select'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $11     
         16        INIT_METHOD_CALL                                         $11, 'get_where'
         17        CHECK_FUNC_ARG                                           
         18        FETCH_OBJ_FUNC_ARG                               $12     'table_name'
         19        SEND_FUNC_ARG                                            $12
         20        SEND_VAR_EX                                              !2
         21        DO_FCALL                                      0  $13     
         22        ASSIGN                                                   !3, $13
   36    23        INIT_METHOD_CALL                                         !3, 'num_rows'
         24        DO_FCALL                                      0  $15     
         25      > JMPZ                                                     $15, ->29
   37    26    >   INIT_METHOD_CALL                                         !3, 'row'
         27        DO_FCALL                                      0  $16     
         28      > RETURN                                                   $16
   40    29    > > RETURN                                                   <false>
   41    30*     > RETURN                                                   null

End of function get_user_info

Function get_users:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 37
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 18
Branch analysis from position: 14
filename:       /in/AHusm
function name:  get_users
number of ops:  39
compiled vars:  !0 = $fields, !1 = $where, !2 = $from, !3 = $limit, !4 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   RECV_INIT                                        !0      '%2A'
          1        RECV_INIT                                        !1      <false>
          2        RECV_INIT                                        !2      <false>
          3        RECV_INIT                                        !3      <false>
   45     4        FETCH_OBJ_R                                      ~5      'db'
          5        INIT_METHOD_CALL                                         ~5, 'select'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
   47     8        TYPE_CHECK                                  128          !1
          9      > JMPZ                                                     ~7, ->14
   48    10    >   FETCH_OBJ_R                                      ~8      'db'
         11        INIT_METHOD_CALL                                         ~8, 'where'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0          
   50    14    >   TYPE_CHECK                                  1018  ~10     !2
         15      > JMPZ_EX                                          ~10     ~10, ->18
         16    >   TYPE_CHECK                                  1018  ~11     !3
         17        BOOL                                             ~10     ~11
         18    > > JMPZ                                                     ~10, ->24
   51    19    >   FETCH_OBJ_R                                      ~12     'db'
         20        INIT_METHOD_CALL                                         ~12, 'limit'
         21        SEND_VAR_EX                                              !2
         22        SEND_VAR_EX                                              !3
         23        DO_FCALL                                      0          
   53    24    >   FETCH_OBJ_R                                      ~14     'db'
         25        INIT_METHOD_CALL                                         ~14, 'get'
         26        CHECK_FUNC_ARG                                           
         27        FETCH_OBJ_FUNC_ARG                               $15     'table_name'
         28        SEND_FUNC_ARG                                            $15
         29        DO_FCALL                                      0  $16     
         30        ASSIGN                                                   !4, $16
   55    31        INIT_METHOD_CALL                                         !4, 'num_rows'
         32        DO_FCALL                                      0  $18     
         33      > JMPZ                                                     $18, ->37
   56    34    >   INIT_METHOD_CALL                                         !4, 'result'
         35        DO_FCALL                                      0  $19     
         36      > RETURN                                                   $19
   59    37    > > RETURN                                                   <false>
   60    38*     > RETURN                                                   null

End of function get_users

Function get_current_user:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  get_current_user
number of ops:  26
compiled vars:  !0 = $fields, !1 = $user_id, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   62     0  E >   RECV_INIT                                        !0      '%2A'
   64     1        FETCH_OBJ_R                                      ~3      'session'
          2        INIT_METHOD_CALL                                         ~3, 'userdata'
          3        SEND_VAL_EX                                              'id'
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !1, $4
   66     6        FETCH_OBJ_R                                      ~6      'db'
          7        INIT_METHOD_CALL                                         ~6, 'select'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $7      
         10        INIT_METHOD_CALL                                         $7, 'get_where'
         11        CHECK_FUNC_ARG                                           
         12        FETCH_OBJ_FUNC_ARG                               $8      'table_name'
         13        SEND_FUNC_ARG                                            $8
         14        INIT_ARRAY                                       ~9      !1, 'id'
         15        SEND_VAL_EX                                              ~9
         16        DO_FCALL                                      0  $10     
         17        ASSIGN                                                   !2, $10
   68    18        INIT_METHOD_CALL                                         !2, 'num_rows'
         19        DO_FCALL                                      0  $12     
         20      > JMPZ                                                     $12, ->24
   69    21    >   INIT_METHOD_CALL                                         !2, 'row'
         22        DO_FCALL                                      0  $13     
         23      > RETURN                                                   $13
   72    24    > > RETURN                                                   <false>
   73    25*     > RETURN                                                   null

End of function get_current_user

Function get_user_by_email:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  get_user_by_email
number of ops:  25
compiled vars:  !0 = $fields, !1 = $email, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   75     0  E >   RECV_INIT                                        !0      '%2A'
          1        RECV_INIT                                        !1      <false>
   77     2        BOOL_NOT                                         ~3      !1
          3      > JMPZ                                                     ~3, ->5
   78     4    > > RETURN                                                   <false>
   80     5    >   FETCH_OBJ_R                                      ~4      'db'
          6        INIT_METHOD_CALL                                         ~4, 'select'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $5      
          9        INIT_METHOD_CALL                                         $5, 'get_where'
         10        CHECK_FUNC_ARG                                           
         11        FETCH_OBJ_FUNC_ARG                               $6      'table_name'
         12        SEND_FUNC_ARG                                            $6
         13        INIT_ARRAY                                       ~7      !1, 'login'
         14        SEND_VAL_EX                                              ~7
         15        DO_FCALL                                      0  $8      
         16        ASSIGN                                                   !2, $8
   82    17        INIT_METHOD_CALL                                         !2, 'num_rows'
         18        DO_FCALL                                      0  $10     
         19      > JMPZ                                                     $10, ->23
   83    20    >   INIT_METHOD_CALL                                         !2, 'row'
         21        DO_FCALL                                      0  $11     
         22      > RETURN                                                   $11
   86    23    > > RETURN                                                   <false>
   87    24*     > RETURN                                                   null

End of function get_user_by_email

Function update_user_info:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/AHusm
function name:  update_user_info
number of ops:  34
compiled vars:  !0 = $user_id, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   89     0  E >   RECV_INIT                                        !0      <false>
          1        RECV_INIT                                        !1      <false>
   91     2        BOOL_NOT                                         ~2      !0
          3      > JMPNZ_EX                                         ~2      ~2, ->6
          4    >   BOOL_NOT                                         ~3      !1
          5        BOOL                                             ~2      ~3
          6    > > JMPZ                                                     ~2, ->8
   92     7    > > RETURN                                                   <false>
   93     8    >   INIT_METHOD_CALL                                         'is_user_exist'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $4      
         11        BOOL_NOT                                         ~5      $4
         12      > JMPZ                                                     ~5, ->14
   94    13    > > RETURN                                                   <false>
   96    14    >   FETCH_OBJ_R                                      ~6      'db'
         15        INIT_METHOD_CALL                                         ~6, 'where'
         16        SEND_VAL_EX                                              'id'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0  $7      
         19        INIT_METHOD_CALL                                         $7, 'update'
         20        CHECK_FUNC_ARG                                           
         21        FETCH_OBJ_FUNC_ARG                               $8      'table_name'
         22        SEND_FUNC_ARG                                            $8
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0          
   98    25        FETCH_OBJ_R                                      ~10     'db'
         26        INIT_METHOD_CALL                                         ~10, 'affected_rows'
         27        DO_FCALL                                      0  $11     
         28      > JMPZ                                                     $11, ->31
         29    >   QM_ASSIGN                                        ~12     <true>
         30      > JMP                                                      ->32
         31    >   QM_ASSIGN                                        ~12     <false>
         32    > > RETURN                                                   ~12
   99    33*     > RETURN                                                   null

End of function update_user_info

Function is_user_exist:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  is_user_exist
number of ops:  24
compiled vars:  !0 = $user_id, !1 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  101     0  E >   RECV_INIT                                        !0      <false>
  103     1        BOOL_NOT                                         ~2      !0
          2      > JMPZ                                                     ~2, ->4
  104     3    > > RETURN                                                   <false>
  106     4    >   FETCH_OBJ_R                                      ~3      'db'
          5        INIT_METHOD_CALL                                         ~3, 'select'
          6        SEND_VAL_EX                                              'id'
          7        DO_FCALL                                      0  $4      
          8        INIT_METHOD_CALL                                         $4, 'get_where'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_OBJ_FUNC_ARG                               $5      'table_name'
         11        SEND_FUNC_ARG                                            $5
         12        INIT_ARRAY                                       ~6      !0, 'id'
         13        SEND_VAL_EX                                              ~6
         14        DO_FCALL                                      0  $7      
         15        ASSIGN                                                   !1, $7
  108    16        INIT_METHOD_CALL                                         !1, 'num_rows'
         17        DO_FCALL                                      0  $9      
         18      > JMPZ                                                     $9, ->21
         19    >   QM_ASSIGN                                        ~10     <true>
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~10     <false>
         22    > > RETURN                                                   ~10
  109    23*     > RETURN                                                   null

End of function is_user_exist

Function is_email_exist:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  is_email_exist
number of ops:  24
compiled vars:  !0 = $email, !1 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  111     0  E >   RECV_INIT                                        !0      <false>
  113     1        BOOL_NOT                                         ~2      !0
          2      > JMPZ                                                     ~2, ->4
  114     3    > > RETURN                                                   <false>
  116     4    >   FETCH_OBJ_R                                      ~3      'db'
          5        INIT_METHOD_CALL                                         ~3, 'select'
          6        SEND_VAL_EX                                              'id'
          7        DO_FCALL                                      0  $4      
          8        INIT_METHOD_CALL                                         $4, 'get_where'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_OBJ_FUNC_ARG                               $5      'table_name'
         11        SEND_FUNC_ARG                                            $5
         12        INIT_ARRAY                                       ~6      !0, 'login'
         13        SEND_VAL_EX                                              ~6
         14        DO_FCALL                                      0  $7      
         15        ASSIGN                                                   !1, $7
  118    16        INIT_METHOD_CALL                                         !1, 'num_rows'
         17        DO_FCALL                                      0  $9      
         18      > JMPZ                                                     $9, ->21
         19    >   QM_ASSIGN                                        ~10     <true>
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~10     <false>
         22    > > RETURN                                                   ~10
  119    23*     > RETURN                                                   null

End of function is_email_exist

Function is_logged_in:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  is_logged_in
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  123     0  E >   FETCH_OBJ_R                                      ~0      'session'
          1        INIT_METHOD_CALL                                         ~0, 'userdata'
          2        SEND_VAL_EX                                              'id'
          3        DO_FCALL                                      0  $1      
          4        BOOL                                             ~2      $1
          5      > RETURN                                                   ~2
  124     6*     > RETURN                                                   null

End of function is_logged_in

Function get_user_group:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  get_user_group
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  128     0  E >   FETCH_OBJ_R                                      ~0      'session'
          1        INIT_METHOD_CALL                                         ~0, 'userdata'
          2        SEND_VAL_EX                                              'group'
          3        DO_FCALL                                      0  $1      
          4        CAST                                          4  ~2      $1
          5      > RETURN                                                   ~2
  129     6*     > RETURN                                                   null

End of function get_user_group

Function password_verify:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  password_verify
number of ops:  12
compiled vars:  !0 = $password, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  132     0  E >   RECV_INIT                                        !0      ''
          1        RECV_INIT                                        !1      ''
  134     2        FETCH_OBJ_R                                      ~2      'load'
          3        INIT_METHOD_CALL                                         ~2, 'helper'
          4        SEND_VAL_EX                                              'password'
          5        DO_FCALL                                      0          
  135     6        INIT_FCALL                                               'password_verify'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $4      
         10      > RETURN                                                   $4
  136    11*     > RETURN                                                   null

End of function password_verify

Function password_hash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AHusm
function name:  password_hash
number of ops:  23
compiled vars:  !0 = $password, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.61 ms | 1428 KiB | 15 Q