3v4l.org

run code in 300+ PHP versions simultaneously
<?php function loginUserByID($userID) { $user = $this->db->getPerson($userID); if(!$user) { return false; } if ($user["activated"] == 0){ return false; } $_SESSION["user"] = $user; $_SESSION["loginKey"] = $this->getLoginKey(); return true; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lJWPt
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   1

Function loginuserbyid:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lJWPt
function name:  loginUserByID
number of ops:  25
compiled vars:  !0 = $userID, !1 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        FETCH_THIS                                       $2      
          2        FETCH_OBJ_R                                      ~3      $2, 'db'
          3        INIT_METHOD_CALL                                         ~3, 'getPerson'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !1, $4
    4     7        BOOL_NOT                                         ~6      !1
          8      > JMPZ                                                     ~6, ->10
    5     9    > > RETURN                                                   <false>
    7    10    >   FETCH_DIM_R                                      ~7      !1, 'activated'
         11        IS_EQUAL                                                 ~7, 0
         12      > JMPZ                                                     ~8, ->14
    8    13    > > RETURN                                                   <false>
   10    14    >   FETCH_W                      global              $9      '_SESSION'
         15        ASSIGN_DIM                                               $9, 'user'
         16        OP_DATA                                                  !1
   11    17        FETCH_THIS                                       $13     
         18        INIT_METHOD_CALL                                         $13, 'getLoginKey'
         19        DO_FCALL                                      0  $14     
         20        FETCH_W                      global              $11     '_SESSION'
         21        ASSIGN_DIM                                               $11, 'loginKey'
         22        OP_DATA                                                  $14
   12    23      > RETURN                                                   <true>
   13    24*     > RETURN                                                   null

End of function loginuserbyid

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.7 ms | 942 KiB | 14 Q