3v4l.org

run code in 500+ PHP versions simultaneously
<?php add_filter('auth_cookie_expiration', function($length, $user_id, $remember) { if (current_user_can('orbit_crm_access')) { return 12 * HOUR_IN_SECONDS; } return $length; }, 10, 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4LMpj
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                           'add_filter'
          1        SEND_VAL_EX                                                  'auth_cookie_expiration'
          2        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    7     3        SEND_VAL_EX                                                  ~0
          4        SEND_VAL_EX                                                  10
          5        SEND_VAL_EX                                                  3
    2     6        DO_FCALL                                          0          
    7     7      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4LMpj
function name:  {closure:/in/4LMpj:2}
number of ops:  12
compiled vars:  !0 = $length, !1 = $user_id, !2 = $remember
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
    3     3        INIT_FCALL_BY_NAME                                           'current_user_can'
          4        SEND_VAL_EX                                                  'orbit_crm_access'
          5        DO_FCALL                                          0  $3      
          6      > JMPZ                                                         $3, ->10
    4     7    >   FETCH_CONSTANT                                       ~4      'HOUR_IN_SECONDS'
          8        MUL                                                  ~5      ~4, 12
          9      > RETURN                                                       ~5
    6    10    > > RETURN                                                       !0
    7    11*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.58 ms | 1395 KiB | 13 Q