3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CustomerController extends CoreCustomerController { public function remind() { return View::make('customers.remind'); } public function request() { $credentials = array('email' => Input::get('email')); return CustomerPassword::remind( $credentials, function($message){ $message->subject(Lang::get('customer.password_reminder_email_title')); } ); } public function reset($token) { return View::make('customers.reset')->with('token', $token); } public function update() { $credentials = array('email' => Input::get('email')); return CustomerPassword::reset($credentials, function ($user, $password) { $user->password = Hash::make($password); $user->save(); return Redirect::to('login')->with('flash', 'Your password has been reset'); }); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3QCv
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'customercontroller', 'corecustomercontroller'
   40     1      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FV3QCv%3A17%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3QCv
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1        INIT_METHOD_CALL                                         !0, 'subject'
          2        INIT_STATIC_METHOD_CALL                                  'Lang', 'get'
          3        SEND_VAL_EX                                              'customer.password_reminder_email_title'
          4        DO_FCALL                                      0  $1      
          5        SEND_VAR_NO_REF_EX                                       $1
          6        DO_FCALL                                      0          
   19     7      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FV3QCv%3A17%240

Function %00%7Bclosure%7D%2Fin%2FV3QCv%3A32%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3QCv
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $user, !1 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   33     2        INIT_STATIC_METHOD_CALL                                  'Hash', 'make'
          3        SEND_VAR_EX                                              !1
          4        DO_FCALL                                      0  $3      
          5        ASSIGN_OBJ                                               !0, 'password'
          6        OP_DATA                                                  $3
   35     7        INIT_METHOD_CALL                                         !0, 'save'
          8        DO_FCALL                                      0          
   37     9        INIT_STATIC_METHOD_CALL                                  'Redirect', 'to'
         10        SEND_VAL_EX                                              'login'
         11        DO_FCALL                                      0  $5      
         12        INIT_METHOD_CALL                                         $5, 'with'
         13        SEND_VAL_EX                                              'flash'
         14        SEND_VAL_EX                                              'Your+password+has+been+reset'
         15        DO_FCALL                                      0  $6      
         16      > RETURN                                                   $6
   38    17*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FV3QCv%3A32%241

Class CustomerController:
Function remind:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3QCv
function name:  remind
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_STATIC_METHOD_CALL                                  'View', 'make'
          1        SEND_VAL_EX                                              'customers.remind'
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
    9     4*     > RETURN                                                   null

End of function remind

Function request:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3QCv
function name:  request
number of ops:  12
compiled vars:  !0 = $credentials
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'Input', 'get'
          1        SEND_VAL_EX                                              'email'
          2        DO_FCALL                                      0  $1      
          3        INIT_ARRAY                                       ~2      $1, 'email'
          4        ASSIGN                                                   !0, ~2
   15     5        INIT_STATIC_METHOD_CALL                                  'CustomerPassword', 'remind'
   16     6        SEND_VAR_EX                                              !0
   17     7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FV3QCv%3A17%240'
   19     8        SEND_VAL_EX                                              ~4
          9        DO_FCALL                                      0  $5      
         10      > RETURN                                                   $5
   21    11*     > RETURN                                                   null

End of function request

Function reset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3QCv
function name:  reset
number of ops:  10
compiled vars:  !0 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
   25     1        INIT_STATIC_METHOD_CALL                                  'View', 'make'
          2        SEND_VAL_EX                                              'customers.reset'
          3        DO_FCALL                                      0  $1      
          4        INIT_METHOD_CALL                                         $1, 'with'
          5        SEND_VAL_EX                                              'token'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $2      
          8      > RETURN                                                   $2
   26     9*     > RETURN                                                   null

End of function reset

Function update:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3QCv
function name:  update
number of ops:  12
compiled vars:  !0 = $credentials
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   INIT_STATIC_METHOD_CALL                                  'Input', 'get'
          1        SEND_VAL_EX                                              'email'
          2        DO_FCALL                                      0  $1      
          3        INIT_ARRAY                                       ~2      $1, 'email'
          4        ASSIGN                                                   !0, ~2
   32     5        INIT_STATIC_METHOD_CALL                                  'CustomerPassword', 'reset'
          6        SEND_VAR_EX                                              !0
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FV3QCv%3A32%241'
   38     8        SEND_VAL_EX                                              ~4
          9        DO_FCALL                                      0  $5      
         10      > RETURN                                                   $5
   39    11*     > RETURN                                                   null

End of function update

End of class CustomerController.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.44 ms | 1394 KiB | 13 Q